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