From: Egor Date: Sat, 17 Aug 2024 21:41:26 +0000 (+0300) Subject: spam.lua: typos X-Git-Url: https://git.patchysicp.xyz/?a=commitdiff_plain;h=65a60d4d2cfc655b72fa8bd349ea53302b91c034;p=patchyircd.git spam.lua: typos --- diff --git a/lua/spam.lua b/lua/spam.lua index ec8ea57..488b3d4 100644 --- a/lua/spam.lua +++ b/lua/spam.lua @@ -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