summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-02-05 14:15:58 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-02-05 14:15:58 +0000
commit18b911c57a786135cf29fdca1c6e79093cd58945 (patch)
treec8cb9d5c3cefe3c6d0d813fadc9b61817f9b36b9
parentc4c3107d53002da172af6d93e21a8741d9b0b266 (diff)
downloadhercules-18b911c57a786135cf29fdca1c6e79093cd58945.tar.gz
hercules-18b911c57a786135cf29fdca1c6e79093cd58945.tar.bz2
hercules-18b911c57a786135cf29fdca1c6e79093cd58945.tar.xz
hercules-18b911c57a786135cf29fdca1c6e79093cd58945.zip
Updated the TXT login server's account id checker (it was still saying the minimum is 700000 instead of 2000000)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9788 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--Changelog-Trunk.txt2
-rw-r--r--src/login/login.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index b8c76047b..a5b7de77e 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -4,6 +4,8 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2007/02/05
+ * Updated the TXT login server's account id checker
+ (it was still saying the minimum is 700000 instead of 2000000)
* Changed the 'getpartyleader' script command so that it returns a map
name instead of the useless mapindex number. Also fixed it so that it
doesn't throw a 'args of aFree is not valid pointer' error.
diff --git a/src/login/login.c b/src/login/login.c
index 98e6ce038..66152e52f 100644
--- a/src/login/login.c
+++ b/src/login/login.c
@@ -1382,8 +1382,8 @@ int mmo_auth(struct mmo_account* account, int fd) {
memcpy(account->lastlogin, auth_dat[i].lastlogin, 24);
memcpy(auth_dat[i].lastlogin, tmpstr, 24);
account->sex = auth_dat[i].sex;
- if (account->sex != 2 && account->account_id < 700000)
- ShowWarning("Account %s has account id %d! Account IDs must be over 700000 to work properly!\n", account->userid, account->account_id);
+ if (account->sex != 2 && account->account_id < START_ACCOUNT_NUM)
+ ShowWarning("Account %s has account id %d! Account IDs must be over %d to work properly!\n", account->userid, account->account_id, START_ACCOUNT_NUM);
strncpy(auth_dat[i].last_ip, ip, 16);
auth_dat[i].logincount++;