diff options
author | (no author) <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-02-06 02:27:35 +0000 |
---|---|---|
committer | (no author) <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-02-06 02:27:35 +0000 |
commit | edc0cbfe0fcbc37b6ebd1bc06fedd39bf62f5eb6 (patch) | |
tree | 2e3771ddb9f284e56b86640ad46bfca0a0e1f7fb | |
parent | 83e346c622087ab2898bb8ed4c8cae6f503f1e7e (diff) | |
download | hercules-edc0cbfe0fcbc37b6ebd1bc06fedd39bf62f5eb6.tar.gz hercules-edc0cbfe0fcbc37b6ebd1bc06fedd39bf62f5eb6.tar.bz2 hercules-edc0cbfe0fcbc37b6ebd1bc06fedd39bf62f5eb6.tar.xz hercules-edc0cbfe0fcbc37b6ebd1bc06fedd39bf62f5eb6.zip |
blank email for char deletion works when email is a@a.com (SQL)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1053 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r-- | Changelog.txt | 4 | ||||
-rw-r--r-- | src/char_sql/char.c | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/Changelog.txt b/Changelog.txt index 1a9fffea2..e29af9d08 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -1,6 +1,10 @@ Date Added 02/05 + * Changed the way char deletion works for SQL [1051: Ajarn] + - If the email the client fails check then check if the + email is blank and the DB email is a@a.com (default) + If so, assume it was created with _M/_F, and delete it * SQL Login accepts _M/_F now [Credit to Sirius] [1049: Ajarn] * Map server now actually reads bind_ip [1048: Ajarn] Side note: login reads bind_ip, but doesn't use login_ip now. diff --git a/src/char_sql/char.c b/src/char_sql/char.c index a6c8d60b3..3e144cf40 100644 --- a/src/char_sql/char.c +++ b/src/char_sql/char.c @@ -2601,7 +2601,10 @@ int parse_char(int fd) { sql_res = mysql_store_result(&lmysql_handle); if (sql_res) { sql_row = mysql_fetch_row(sql_res); - if (strcmp(email,sql_row[0]) == 0) { + + if ( (strcmp(email,sql_row[0]) == 0) || // client_value == db_value? + ((strcmp(email,"") == 0) && + (strcmp(sql_row[0],"a@a.com") == 0)) ) { // client_value == "" && db_value == "a@a.com" ? mysql_free_result(sql_res); } else { WFIFOW(fd, 0) = 0x70; |