Permalink
Browse files

Update gamemsg.lua

  • Loading branch information...
1 parent 48a6607 commit fb4ab5382be07291d4b16da5ce80b7e198f5660d @DarthTealc DarthTealc committed Jun 18, 2014
Showing with 5 additions and 0 deletions.
  1. +5 −0 garrysmod/gamemodes/terrortown/gamemode/gamemsg.lua
@@ -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

0 comments on commit fb4ab53

Please sign in to comment.