fix lower_case transformation

This commit is contained in:
Andrey Stepanov 2024-11-10 23:12:58 +05:00
parent 00c7af74f9
commit f9492100a4
Signed by: Koldun
GPG Key ID: 53DE683337F5D25F

View File

@ -66,7 +66,7 @@ end
function filter.check_message(name, message)
for _, w in ipairs(words) do
if utf8.find(message:lower(), "%f[%a]" .. w .. "%f[%A]") then
if utf8.find(utf8:lower(message), "%f[%a]" .. w .. "%f[%A]") then
return false
end
end