diff options
Diffstat (limited to 'src/login')
-rw-r--r-- | src/login/login.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login/login.c b/src/login/login.c index 0a06dcb75..f0ca3c29f 100644 --- a/src/login/login.c +++ b/src/login/login.c @@ -3034,7 +3034,7 @@ int parse_login(int fd) login_log("Request for connection (encryption mode) of %s (ip: %s).\n", account.userid, ip); memcpy(account.passwd, RFIFOP(fd,30), 16); account.passwd[16] = '\0'; // binary data here } - account.passwdenc = (command != 0x01dd) ? 0 : PASSWORDENC; + account.passwdenc = (command == 0x01dd) ? PASSWORDENC : 0; result = mmo_auth(&account, fd); if( result == -1 ) |