From 533152a44339c03a2c2ed11f9a3b44d79121c897 Mon Sep 17 00:00:00 2001 From: pack Date: Thu, 31 Oct 2019 23:15:39 +1000 Subject: [PATCH] Update sv_chat.lua Co-Authored-By: Bo Anderson --- gamemode/modules/chat/sv_chat.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gamemode/modules/chat/sv_chat.lua b/gamemode/modules/chat/sv_chat.lua index d56dd6d46..832adf1ad 100644 --- a/gamemode/modules/chat/sv_chat.lua +++ b/gamemode/modules/chat/sv_chat.lua @@ -133,7 +133,7 @@ function GM:PlayerSay(ply, text, teamonly) -- We will make the old hooks run AFT for k, v in pairs(self.OldChatHooks) do if not isfunction(v) then continue end - if isentity(k) or k:IsPlayer() then + if isentity(k) or type(k) == "Player" then text2 = v(k, ply, text, teamonly, dead) or text2 else text2 = v(ply, text, teamonly, dead) or text2