diff options
author | M. Kristall <mkpdev@gmail.com> | 2007-09-16 17:43:47 +0000 |
---|---|---|
committer | M. Kristall <mkpdev@gmail.com> | 2007-09-16 17:43:47 +0000 |
commit | 559a1fa0b7d47cf4827cd13035a2ac85b70c5487 (patch) | |
tree | 48024633fdaa947665f6505b8609905a328984ec | |
parent | 9c550fc288439b843fa020d8243f0354df41068e (diff) |
* (bug 3096) bans sometimes fail inexplicably
-rw-r--r-- | src/game/g_admin.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/g_admin.c b/src/game/g_admin.c index af9f6cb5..4200d3cb 100644 --- a/src/game/g_admin.c +++ b/src/game/g_admin.c @@ -1050,6 +1050,11 @@ void G_admin_namelog_update( gclient_t *client, qboolean disconnect ) Q_strncpyz( g_admin_namelog[ i ]->name[ j ], client->pers.netname, sizeof( g_admin_namelog[ i ]->name[ j ] ) ); g_admin_namelog[ i ]->slot = ( disconnect ) ? -1 : clientNum; + + // if this player is connecting, they are no longer banned + if( !disconnect ) + g_admin_namelog[ i ]->banned = qfalse; + return; } } |