Skip to content

Commit 6ef5534

Browse files
authored
Check for console (#42)
1 parent d48b695 commit 6ef5534

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lua/cfc_gmod_scripts/no_teamchat/sv_noteamchat.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ local ranks = {
66
}
77

88
hook.Add( "PlayerCanSeePlayersChat", "GmodScripts_PublicTeamChat", function( _text, team, _listener, speaker )
9+
if not IsValid( speaker ) then return end
910
local usergroup = speaker:GetUserGroup()
1011
if not ranks[usergroup] then return end
1112
if team then return true end

0 commit comments

Comments
 (0)