From 204550756be8d74a0d802371158f935fe951574c Mon Sep 17 00:00:00 2001 From: Aleksandr Avdeev Date: Thu, 7 Nov 2024 14:03:53 +0300 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=BC=D0=B5=D0=BD=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20=D0=BF=D0=BE=D0=B8=D1=81=D0=BA=20=D1=80=D0=B5=D0=B3?= =?UTF-8?q?=D1=83=D0=BB=D1=8F=D1=80=D0=BD=D0=BE=D0=B3=D0=BE=20=D0=B2=D1=8B?= =?UTF-8?q?=D1=80=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=BF=D0=BE=D0=B8?= =?UTF-8?q?=D1=81=D0=BA=D0=BE=D0=BC=20=D1=81=D0=BB=D0=BE=D0=B2=D0=B0=20?= =?UTF-8?q?=D0=B2=20=D1=81=D0=BE=D0=BE=D0=B1=D1=89=D0=B5=D0=BD=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 830908d..22a15a6 100755 --- a/init.lua +++ b/init.lua @@ -65,7 +65,7 @@ end function filter.check_message(name, message) for _, w in ipairs(words) do - if string.find(message:lower(), "%f[%a]" .. w .. "%f[%A]") then + if string.find(message:lower(), w, 1, true) then return false end end