]> PatchyGit - patchyircd.git/commitdiff
spam.lua: minor fix
authorEgor <egor@patchysicp.xyz>
Sat, 17 Aug 2024 21:21:29 +0000 (00:21 +0300)
committerEgor <egor@patchysicp.xyz>
Sat, 17 Aug 2024 21:21:29 +0000 (00:21 +0300)
lua/spam.lua

index 5947cca..9bb0784 100644 (file)
@@ -24,7 +24,7 @@ function setspamlevel(newlevel)
                end
                txt = ascii(txt)
                if not chan.v[cl1.key] and not chan.o[cl1.key] and
-                       (txt:find("hardchats.com", 1, true) or txt:find("HARDCHATS", 1, true)) then
+                       (txt:find("hardchats.com", 1, true) or txt:find("HARDCHAT", 1, true)) then
                        return -1
                end
        end)