Skip to content

Commit

Permalink
Update sv_chat.lua
Browse files Browse the repository at this point in the history
Co-Authored-By: Bo Anderson <bo98@users.noreply.github.com>
  • Loading branch information
realpack and Bo98 committed Oct 31, 2019
1 parent a444f88 commit 533152a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gamemode/modules/chat/sv_chat.lua
Expand Up @@ -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
Expand Down

0 comments on commit 533152a

Please sign in to comment.