summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorM. Kristall <mkpdev@gmail.com>2009-10-18 09:02:41 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:16:54 +0000
commit69c1b3e76710641222edae4b5f00f4b53561173e (patch)
treec43674e9556424ee6e0940cc04c3c6480a237add /src
parent65bca8d34a1d36f0f94d5eb2a8b3368389ecbb58 (diff)
* Better fix for !showbans -10 not working properly
Diffstat (limited to 'src')
-rw-r--r--src/game/g_admin.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/g_admin.c b/src/game/g_admin.c
index f0206012..6bb426d4 100644
--- a/src/game/g_admin.c
+++ b/src/game/g_admin.c
@@ -2339,7 +2339,8 @@ qboolean G_admin_showbans( gentity_t *ent, int skiparg )
}
else
{
- for( i = filter[ 0 ] == '-'; filter[ i ] && isdigit( filter[ i ] ); i++ );
+ i = filter[ 0 ] == '-' && filter[ 1 ] ? 1 : 0;
+ for( ; filter[ i ] && isdigit( filter[ i ] ); i++ );
if( filter[ i ] )
G_SanitiseString( filter, name_match, sizeof( name_match ) );
else