diff options
author | Mikko Tiusanen <ams@daug.net> | 2015-03-08 22:40:53 +0200 |
---|---|---|
committer | Mikko Tiusanen <ams@daug.net> | 2015-03-08 22:40:53 +0200 |
commit | 09444c994065e738e7d77951ed68e6178fdb60f7 (patch) | |
tree | 33caeb6ebc7d1328cd973552328813b67a6a863d /src/game/g_cmds.c | |
parent | ce866de2e0814fbc73797aac333d8d51ed1d17b8 (diff) |
Fix attempt for /ignore.
Diffstat (limited to 'src/game/g_cmds.c')
-rw-r--r-- | src/game/g_cmds.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c index eab8631..a172575 100644 --- a/src/game/g_cmds.c +++ b/src/game/g_cmds.c @@ -935,11 +935,15 @@ static qboolean G_SayTo( gentity_t *ent, gentity_t *other, saymode_t mode, const return qfalse; if( !other->client ) - return qfalse; + return qfalse; if( other->client->pers.connected != CON_CONNECTED ) return qfalse; + // ignore messages from people in /ignore list + 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 ) ) { |