summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
author/dev/humancontroller <devhc@example.com>2015-03-18 16:39:33 +0100
committer/dev/humancontroller <devhc@example.com>2017-03-09 13:51:11 +0100
commit393a86566031f16fde92b6c60c0732cbd34eb333 (patch)
tree0680da6531c89e263b678528d06dbb7e2532b4da /src/game
parentff14745db8689e06530d6aae44b58140389ae82c (diff)
make the ignore functionality even transmission-complete, moving the necessary parts to the game module
TODO: implement the vsay-equivalent of G_SayTo()
Diffstat (limited to 'src/game')
-rw-r--r--src/game/g_cmds.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c
index 1a3413a1..6ab2ae15 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -859,6 +859,9 @@ static qboolean G_SayTo( gentity_t *ent, gentity_t *other, saymode_t mode, const
if( other->client->pers.connected != CON_CONNECTED )
return qfalse;
+ if( Com_ClientListContains( &other->client->sess.ignoreList, (int)( ent - g_entities ) ) )
+ return qfalse;
+
if( ( ent && !OnSameTeam( ent, other ) ) &&
( mode == SAY_TEAM || mode == SAY_AREA || mode == SAY_TPRIVMSG ) )
{