case insensitve users prefix

This commit is contained in:
metamuffin 2024-11-13 21:21:10 +01:00
parent 771646a2b3
commit c24818388f
No known key found for this signature in database
GPG key ID: 718F9749DCDBD654

View file

@ -546,7 +546,7 @@ local function r_users(show_special)
print([[<ul class="userlist">]]) print([[<ul class="userlist">]])
local show_user = function(user) local show_user = function(user)
local is_spu = user.name:sub(1, 1) == "@" local is_spu = user.name:sub(1, 1) == "@"
local filter_out = query.prefix ~= nil and user.name:sub(1,1) ~= query.prefix local filter_out = query.prefix ~= nil and user.name:sub(1,1):lower() ~= query.prefix
if is_spu == show_special and not filter_out then if is_spu == show_special and not filter_out then
print(format([[<li> print(format([[<li>
<a href="/{username_url}"> <a href="/{username_url}">