From 300a31a4bb102740f279987a888c2a25d3764a8f Mon Sep 17 00:00:00 2001
From: "M. Kristall" <mkpdev@gmail.com>
Date: Sun, 19 Dec 2010 01:15:31 +0000
Subject: * adjustban 16 /16 would make ban #16 permanent

---
 src/game/g_admin.c | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'src/game')

diff --git a/src/game/g_admin.c b/src/game/g_admin.c
index 97854ff6..c71de228 100644
--- a/src/game/g_admin.c
+++ b/src/game/g_admin.c
@@ -1430,6 +1430,8 @@ static qboolean admin_create_ban( gentity_t *ent,
 int G_admin_parse_time( const char *time )
 {
   int seconds = 0, num = 0;
+  if( !*time )
+    return -1;
   while( *time )
   {
     if( !isdigit( *time ) )
-- 
cgit