From d8937606dd199d390ab2be0779def425aadebd5a Mon Sep 17 00:00:00 2001 From: Christopher Schwarz Date: Sat, 3 Oct 2009 12:25:55 +0000 Subject: * Prevent changing names while muted --- src/game/g_client.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') 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 ) ); -- cgit