summaryrefslogtreecommitdiff
path: root/src/login_sql
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-09-13 06:06:30 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-09-13 06:06:30 +0000
commit6eec4f53cc983d63b8d3e203f6095591c350e453 (patch)
treec746b88b56779554f6b218eb90e6ace48a14c176 /src/login_sql
parent4bd3eb00fe774b2404958ffe597356e25a9dde4f (diff)
downloadhercules-6eec4f53cc983d63b8d3e203f6095591c350e453.tar.gz
hercules-6eec4f53cc983d63b8d3e203f6095591c350e453.tar.bz2
hercules-6eec4f53cc983d63b8d3e203f6095591c350e453.tar.xz
hercules-6eec4f53cc983d63b8d3e203f6095591c350e453.zip
Wiped out every mention of RETCODE from /src.
The servers no longer save data using CRCRLF as line terminator on Windows. Closes bugreport:45. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11187 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/login_sql')
-rw-r--r--src/login_sql/login.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/login_sql/login.c b/src/login_sql/login.c
index 3fe16305e..9411c6fec 100644
--- a/src/login_sql/login.c
+++ b/src/login_sql/login.c
@@ -620,7 +620,7 @@ int mmo_auth(struct mmo_account* account, int fd)
if (!check_password(session[fd]->session_data, account->passwdenc, user_password, password))
{
- ShowInfo("Invalid password (account: %s, pass: %s, received pass: %s, ip: %s)" RETCODE,
+ ShowInfo("Invalid password (account: %s, pass: %s, received pass: %s, ip: %s)\n",
account->userid, password, (account->passwdenc) ? "[MD5]" : account->passwd, ip);
return 1; // 1 = Incorrect Password
}
@@ -911,13 +911,13 @@ int parse_fromchar(int fd)
memcpy(actual_email, RFIFOP(fd,6), 40);
memcpy(new_email, RFIFOP(fd,46), 40);
if (e_mail_check(actual_email) == 0)
- ShowWarning("Char-server '%s': Attempt to modify an e-mail on an account (@email GM command), but actual email is invalid (account: %d, ip: %s)" RETCODE,
+ ShowWarning("Char-server '%s': Attempt to modify an e-mail on an account (@email GM command), but actual email is invalid (account: %d, ip: %s)\n",
server[id].name, acc, ip);
else if (e_mail_check(new_email) == 0)
- ShowWarning("Char-server '%s': Attempt to modify an e-mail on an account (@email GM command) with a invalid new e-mail (account: %d, ip: %s)" RETCODE,
+ ShowWarning("Char-server '%s': Attempt to modify an e-mail on an account (@email GM command) with a invalid new e-mail (account: %d, ip: %s)\n",
server[id].name, acc, ip);
else if (strcmpi(new_email, "a@a.com") == 0)
- ShowWarning("Char-server '%s': Attempt to modify an e-mail on an account (@email GM command) with a default e-mail (account: %d, ip: %s)" RETCODE,
+ ShowWarning("Char-server '%s': Attempt to modify an e-mail on an account (@email GM command) with a default e-mail (account: %d, ip: %s)\n",
server[id].name, acc, ip);
else {
sprintf(tmpsql, "SELECT `%s`,`email` FROM `%s` WHERE `%s` = '%d'", login_db_userid, login_db, login_db_account_id, acc);
@@ -937,7 +937,7 @@ int parse_fromchar(int fd)
ShowSQL("DB error - %s\n",mysql_error(&mysql_handle));
ShowDebug("at %s:%d - %s\n", __FILE__,__LINE__,tmpsql);
}
- ShowInfo("Char-server '%s': Modify an e-mail on an account (@email GM command) (account: %d (%s), new e-mail: %s, ip: %s)." RETCODE,
+ ShowInfo("Char-server '%s': Modify an e-mail on an account (@email GM command) (account: %d (%s), new e-mail: %s, ip: %s).\n",
server[id].name, acc, sql_row[0], actual_email, ip);
}
}
@@ -1293,7 +1293,7 @@ int login_ip_ban_check(uint32 ip)
}
// ip ban ok.
- ShowInfo("Packet from banned ip : %d.%d.%d.%d\n" RETCODE, CONVIP(ip));
+ ShowInfo("Packet from banned ip : %d.%d.%d.%d\n", CONVIP(ip));
if (login_config.log_login)
{
@@ -1668,12 +1668,12 @@ int parse_login(int fd)
break;
case 0x7532: // Request to end connection
- ShowStatus ("End of connection (ip: %s)" RETCODE, ip);
+ ShowStatus ("End of connection (ip: %s)\n", ip);
set_eof(fd);
break;
default:
- ShowStatus ("Abnormal end of connection (ip: %s): Unknown packet 0x%x " RETCODE, ip, RFIFOW(fd,0));
+ ShowStatus ("Abnormal end of connection (ip: %s): Unknown packet 0x%x\n", ip, RFIFOW(fd,0));
set_eof(fd);
return 0;
}
@@ -1691,7 +1691,7 @@ int parse_console(char* buf)
sscanf(buf, "%[^\n]", command);
- //login_log("Console command :%s" RETCODE, command);
+ //login_log("Console command :%s\n", command);
if( strcmpi("shutdown", command) == 0 ||
strcmpi("exit", command) == 0 ||