summaryrefslogtreecommitdiff
path: root/src/game/g_admin.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_admin.c')
-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 0be535f6..3767c52a 100644
--- a/src/game/g_admin.c
+++ b/src/game/g_admin.c
@@ -1659,7 +1659,8 @@ qboolean G_admin_ban( gentity_t *ent, int skiparg )
modifier = 60 * 60;
else if( secs[ lastchar ] == 'm' )
modifier = 60;
- secs[ lastchar ] = '\0';
+ else if( secs[ lastchar ] < '0' || secs[ lastchar ] > '9' )
+ secs[ lastchar ] = '\0';
}
seconds = atoi( secs );
if( seconds > 0 )