diff options
author | sirius <sirius@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-02-15 09:47:08 +0000 |
---|---|---|
committer | sirius <sirius@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-02-15 09:47:08 +0000 |
commit | 8c276f1978677fb63b7cf3fe9255491768d8895d (patch) | |
tree | 1ae9f48b989d8f6fd68d8f15d97de15fb7c21e4a /src/login_sql/login.c | |
parent | c73cd00ae16ee8235f7e2929dfafabdeacbc4745 (diff) | |
download | hercules-8c276f1978677fb63b7cf3fe9255491768d8895d.tar.gz hercules-8c276f1978677fb63b7cf3fe9255491768d8895d.tar.bz2 hercules-8c276f1978677fb63b7cf3fe9255491768d8895d.tar.xz hercules-8c276f1978677fb63b7cf3fe9255491768d8895d.zip |
CharSQL: fixed the 0x2b05 packet, now the multi mapservers works ...
Login/LoginSQL: fixed the version check finaly :) now the servers can connect XD
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1110 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/login_sql/login.c')
-rw-r--r-- | src/login_sql/login.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/login_sql/login.c b/src/login_sql/login.c index 3aae267b0..f387e32c1 100644 --- a/src/login_sql/login.c +++ b/src/login_sql/login.c @@ -437,16 +437,6 @@ int mmo_auth( struct mmo_account* account , int fd){ jstrescapecpy(t_pass, account->passwd); - //check for lasted version (exe version check) [Sirius] - if(account->sex != 0){ - if(check_client_version == 1){ - if(account->version != client_version_to_connect){ - return 6; - } - } - } - - // make query sprintf(tmpsql, "SELECT `%s`,`%s`,`%s`,`lastlogin`,`logincount`,`sex`,`connect_until`,`last_ip`,`ban_until`,`state`,`%s`" " FROM `%s` WHERE %s `%s`='%s'", login_db_account_id, login_db_userid, login_db_user_pass, login_db_level, login_db, case_sensitive ? "BINARY" : "", login_db_userid, t_uid); @@ -469,6 +459,14 @@ int mmo_auth( struct mmo_account* account , int fd){ printf("mmo_auth DB result error ! \n"); return 0; } + + //Client Version check[Sirius] + if(check_client_version == 1 && account->version != 0){ + if(account->version != client_version_to_connect){ + mysql_free_result(sql_res); + return 6; + } + } // Documented by CLOWNISIUS || LLRO || Gunstar lead this one with me // IF changed to diferent returns~ you get diferent responses from your msgstringtable.txt |