diff options
-rw-r--r-- | Changelog.txt | 3 | ||||
-rw-r--r-- | src/login/login.c | 8 | ||||
-rw-r--r-- | src/login_sql/login.c | 8 |
3 files changed, 13 insertions, 6 deletions
diff --git a/Changelog.txt b/Changelog.txt index 97f239752..ae9dac2a2 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -1,5 +1,8 @@ Date Added +02/10 + * Login/Login SQL: fixed the client version check function [Sirius] + 02/09 * Added conf-tmpl/readme.txt, explaining the import folder [1066: Ajarn] * SQL Char: Rewrote the char_create function (now it's faster/optimized) [Sirius] diff --git a/src/login/login.c b/src/login/login.c index ff729d97d..95b0cc349 100644 --- a/src/login/login.c +++ b/src/login/login.c @@ -1122,9 +1122,11 @@ int mmo_auth(struct mmo_account* account, int fd) { } //EXE Version check [Sirius] - if(check_client_version == 1){ - if(account->version != client_version_to_connect){ - return 5; + if(account->sex != 0){ + if(check_client_version == 1){ + if(account->version != client_version_to_connect){ + return 5; + } } } diff --git a/src/login_sql/login.c b/src/login_sql/login.c index 79d25bfba..3aae267b0 100644 --- a/src/login_sql/login.c +++ b/src/login_sql/login.c @@ -438,9 +438,11 @@ int mmo_auth( struct mmo_account* account , int fd){ //check for lasted version (exe version check) [Sirius] - if(check_client_version == 1){ - if(account->version != client_version_to_connect){ - return 6; + if(account->sex != 0){ + if(check_client_version == 1){ + if(account->version != client_version_to_connect){ + return 6; + } } } |