Skip to content

Commit

Permalink
IGNORE: "/ignore $name" ignores client-generated messages
Browse files Browse the repository at this point in the history
  • Loading branch information
meag committed Nov 14, 2018
1 parent 036fa72 commit eb2a5fb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions teamplay.c
Original file line number Diff line number Diff line change
Expand Up @@ -996,6 +996,11 @@ void TP_PrintHiddenMessage(char *buf, int nodisplay)
if (cls.demoplayback)
return;

// Player is ignoring themselves
if (cl.players[cl.playernum].ignored) {
return;
}

name = Info_ValueForKey (cl.players[cl.playernum].userinfo, "name");
if (strlen(name) >= 32)
name[31] = 0;
Expand Down

0 comments on commit eb2a5fb

Please sign in to comment.