diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/login_sql/login.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/login_sql/login.c b/src/login_sql/login.c index b9ac27b55..b9d82f4b9 100644 --- a/src/login_sql/login.c +++ b/src/login_sql/login.c @@ -300,7 +300,7 @@ int mmo_auth( struct mmo_account* account , int fd){ char ip[16]; int encpasswdok = 0; - int state = atoi(sql_row[9]); + int state; #ifdef PASSWORDENC char logbuf[1024], *p = logbuf; @@ -362,6 +362,7 @@ int mmo_auth( struct mmo_account* account , int fd){ // Check status account->ban_until_time = atol(sql_row[8]); + state = atoi(sql_row[9]); if (state == -3) { //id is banned |