fix lower_case transformation #1

Merged
Reload merged 2 commits from lower_case into devel 2024-11-12 10:38:12 +03:00

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