diff options
-rw-r--r-- | src/login/login.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/login/login.c b/src/login/login.c index e1299f586..d31408fac 100644 --- a/src/login/login.c +++ b/src/login/login.c @@ -416,9 +416,6 @@ int parse_fromchar(int fd) {// found //ShowStatus("Char-server '%s': authentication of the account %d accepted (ip: %s).\n", server[id].name, account_id, ip); - // each auth entry can only be used once - idb_remove(auth_db, account_id); - // send ack WFIFOHEAD(fd,25); WFIFOW(fd,0) = 0x2713; @@ -431,6 +428,9 @@ int parse_fromchar(int fd) WFIFOL(fd,20) = node->version; WFIFOB(fd,24) = node->clienttype; WFIFOSET(fd,25); + + // each auth entry can only be used once + idb_remove(auth_db, account_id); } else {// authentication not found |