From d9b68a5eb2476ecb80d4eb5cd76c8fc01ffd60ab Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Sat, 11 Apr 2015 23:35:48 +0200 Subject: Fix /mute. --- src/game/g_admin.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/game/g_admin.c b/src/game/g_admin.c index 0fbac12..bee9294 100644 --- a/src/game/g_admin.c +++ b/src/game/g_admin.c @@ -4605,6 +4605,9 @@ qboolean G_admin_say_area( gentity_t *ent ) return qfalse; } + if( ent->client->pers.namelog->muted ) + return qfalse; + msg = ConcatArgs( 1 ); for(i = 0; i < 3; i++ ) @@ -4648,6 +4651,9 @@ qboolean G_admin_say( gentity_t *ent ) if( trap_Argc( ) < 2 ) return qfalse; + if( ent->client->pers.namelog->muted ) + return qfalse; + trap_Argv( 0, cmd, sizeof( cmd ) ); if( Q_stricmp( cmd, "say_team" ) == 0 ) mode = SAY_TEAM; @@ -4808,6 +4814,9 @@ qboolean G_admin_m( gentity_t *ent ) return qfalse; } + if( ent->client->pers.namelog->muted ) + return qfalse; + if( !Q_stricmp( cmd, "mt" ) ) teamonly = qtrue; -- cgit