Skip to content

Commit

Permalink
Update gamemsg.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
DarthTealc committed Jun 18, 2014
1 parent 48a6607 commit fb4ab53
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions garrysmod/gamemodes/terrortown/gamemode/gamemsg.lua
Expand Up @@ -288,6 +288,11 @@ local function LastWords(ply, cmd, args)
-- nothing of interest
if string.len(words) < 2 then return end

-- ignore admin commands
local firstchar = string.GetChar(words, 1)
if firstchar == "!" or firstchar == "@" or firstchar == "/" then return end


if ttt_lastwords:GetBool() or ply.death_type == KILL_FALL then
LastWordsMsg(ply, words)
end
Expand Down

0 comments on commit fb4ab53

Please sign in to comment.