From 8c276f1978677fb63b7cf3fe9255491768d8895d Mon Sep 17 00:00:00 2001 From: sirius Date: Tue, 15 Feb 2005 09:47:08 +0000 Subject: 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 --- src/login_sql/login.c | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'src/login_sql') 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 -- cgit v1.2.3-70-g09d2