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 /src | |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/char_sql/char.c | 5 |
1 files changed, 4 insertions, 1 deletions
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; |