summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2015-04-11 23:35:48 +0200
committerPaweł Redman <pawel.redman@gmail.com>2015-04-11 23:35:48 +0200
commitd9b68a5eb2476ecb80d4eb5cd76c8fc01ffd60ab (patch)
tree7e1ec2b7e66bb216256b1c783d8a7c178f7c465d /src/game
parent397f8c6f86aa68eeef6a94cc33473c0ffd69372d (diff)
Fix /mute.
Diffstat (limited to 'src/game')
-rw-r--r--src/game/g_admin.c9
1 files changed, 9 insertions, 0 deletions
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;