From 65a60d4d2cfc655b72fa8bd349ea53302b91c034 Mon Sep 17 00:00:00 2001 From: Egor Date: Sun, 18 Aug 2024 00:41:26 +0300 Subject: [PATCH] spam.lua: typos --- lua/spam.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.56.0