summaryrefslogtreecommitdiff
path: root/src/game/g_client.c
diff options
context:
space:
mode:
authorTony J. White <tjw@tjw.org>2007-03-13 19:04:24 +0000
committerTony J. White <tjw@tjw.org>2007-03-13 19:04:24 +0000
commitafde82fd3f01fef91de6e0646d25ce918c0d2399 (patch)
tree6cecdb9e06a96485184df8339827b43a072ab587 /src/game/g_client.c
parent201999a61546b1f2d54007e31e406e9be47b2069 (diff)
* (bug 3052) fix issues with !ban and !namelog when multiple players have the
same IP/GUID. Also give slot number precedence for !ban.
Diffstat (limited to 'src/game/g_client.c')
-rw-r--r--src/game/g_client.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game/g_client.c b/src/game/g_client.c
index e2bbf948..6184bad0 100644
--- a/src/game/g_client.c
+++ b/src/game/g_client.c
@@ -1049,7 +1049,7 @@ void ClientUserinfoChanged( int clientNum )
" renamed to %s\n\"", oldname, client->pers.netname ) );
G_LogPrintf( "ClientRename: %i [%s] (%s) \"%s\" -> \"%s\"\n", clientNum,
client->pers.ip, client->pers.guid, oldname, client->pers.netname );
- G_admin_namelog_update( client, clientNum );
+ G_admin_namelog_update( client, qfalse );
}
}
@@ -1259,7 +1259,7 @@ char *ClientConnect( int clientNum, qboolean firstTime )
// count current clients and rank for scoreboard
CalculateRanks( );
- G_admin_namelog_update( client, clientNum );
+ G_admin_namelog_update( client, qfalse );
return NULL;
}
@@ -1311,7 +1311,7 @@ void ClientBegin( int clientNum )
trap_SendServerCommand( -1, va( "print \"%s" S_COLOR_WHITE " entered the game\n\"", client->pers.netname ) );
// name can change between ClientConnect() and ClientBegin()
- G_admin_namelog_update( client, clientNum );
+ G_admin_namelog_update( client, qfalse );
// request the clients PTR code
trap_SendServerCommand( ent - g_entities, "ptrcrequest" );
@@ -1658,7 +1658,7 @@ void ClientDisconnect( int clientNum )
if( !ent->client )
return;
- G_admin_namelog_update( ent->client, -1 );
+ G_admin_namelog_update( ent->client, qtrue );
// stop any following clients
for( i = 0; i < level.maxclients; i++ )