summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristopher Schwarz <lakitu7@gmail.com>2009-10-03 12:25:55 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:15:57 +0000
commitd8937606dd199d390ab2be0779def425aadebd5a (patch)
treee4c6492029764a34c78f90be0b1bda5859567c46 /src
parent5d44bbcf8a2b2ff4c5c43e3ba3f5c7196a7d01cf (diff)
* Prevent changing names while muted
Diffstat (limited to 'src')
-rw-r--r--src/game/g_client.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/g_client.c b/src/game/g_client.c
index 10445e5e..640f3d36 100644
--- a/src/game/g_client.c
+++ b/src/game/g_client.c
@@ -1026,6 +1026,12 @@ void ClientUserinfoChanged( int clientNum )
g_maxNameChanges.integer ) );
revertName = qtrue;
}
+ else if( client->pers.muted )
+ {
+ trap_SendServerCommand( ent - g_entities,
+ "print \"You cannot change your name while you are muted\n\"" );
+ revertName = qtrue;
+ }
else if( !G_admin_name_check( ent, newname, err, sizeof( err ) ) )
{
trap_SendServerCommand( ent - g_entities, va( "print \"%s\n\"", err ) );