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

index ec8ea57..488b3d4 100644 (file)
@@ -21,7 +21,7 @@ function setspamlevel(newlevel)
                        return -1
                end
        end)
-       hook_add("sendtochannel", "supernets_pm_filter", spamlevel >= 10 and function(hook, cl1, cl2, chan, txt)
+       hook_add("sendtoclient", "supernets_pm_filter", spamlevel >= 10 and function(hook, cl1, cl2, chan, txt)
                if cl1.umode & 2 ~= 0 then -- UMODE_OPER
                        return 0
                end
@@ -45,7 +45,7 @@ function setspamlevel(newlevel)
                        return -1
                end
        end)
-       hook_add("sendtoclinet", "hardchats_pm_filter", spamlevel >= 10 and function(hook, cl1, cl2, chan, txt)
+       hook_add("sendtoclient", "hardchats_pm_filter", spamlevel >= 10 and function(hook, cl1, cl2, chan, txt)
                if cl1.umode & 2 ~= 0 then -- UMODE_OPER
                        return 0
                end