Skip to content

Commit

Permalink
Fixed no char check in chat sending. Closes Chessnut/hl2rp#86 and closes
Browse files Browse the repository at this point in the history
  • Loading branch information
Chessnut committed Jul 30, 2015
1 parent 3a8df46 commit 5bb02f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gamemode/core/libs/sh_chatbox.lua
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,13 @@ if (SERVER) then
receivers = {}

for k, v in ipairs(player.GetAll()) do
if (class.onCanHear(speaker, v) != false) then
if (v:getChar() and class.onCanHear(speaker, v) != false) then
receivers[#receivers + 1] = v
end
end

if (#receivers == 0) then
receivers = nil
return
end
end

Expand Down

0 comments on commit 5bb02f2

Please sign in to comment.