diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-01-06 14:19:26 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-01-06 14:19:26 +0000 |
commit | 3adaf8788b65a84ec4266c6621d30679a95f546d (patch) | |
tree | da233eb45db1f482a4f2a86be9529c90edd76c8b /src/login_sql | |
parent | ad95c2ba955e42d74afffbb6b9b333f69a3f1b1e (diff) | |
download | hercules-3adaf8788b65a84ec4266c6621d30679a95f546d.tar.gz hercules-3adaf8788b65a84ec4266c6621d30679a95f546d.tar.bz2 hercules-3adaf8788b65a84ec4266c6621d30679a95f546d.tar.xz hercules-3adaf8788b65a84ec4266c6621d30679a95f546d.zip |
Modified showmsg code to not attach a timestamp to MSG_NONE-type messages, generated by ShowMessage(). It now works exactly like printf().
Removed/replaced all printf calls in the code.
Added a new flag to setting 'console_silent', for filtering debug messages.
Silenced the "Broken pipe found" and "Server running in debug mode" messages.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12020 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/login_sql')
-rw-r--r-- | src/login_sql/login.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/login_sql/login.c b/src/login_sql/login.c index 5d76c2d93..45fc548c5 100644 --- a/src/login_sql/login.c +++ b/src/login_sql/login.c @@ -1589,21 +1589,21 @@ int parse_console(char* buf) ShowInfo("Console command :%s", command); if( strcmpi("shutdown", command) == 0 || - strcmpi("exit", command) == 0 || - strcmpi("quit", command) == 0 || - strcmpi("end", command) == 0 ) + strcmpi("exit", command) == 0 || + strcmpi("quit", command) == 0 || + strcmpi("end", command) == 0 ) runflag = 0; else if( strcmpi("alive", command) == 0 || - strcmpi("status", command) == 0 ) + strcmpi("status", command) == 0 ) ShowInfo(CL_CYAN"Console: "CL_BOLD"I'm Alive."CL_RESET"\n"); else if( strcmpi("help", command) == 0 ) { - printf(CL_BOLD"Help of commands:"CL_RESET"\n"); - printf(" To shutdown the server:\n"); - printf(" 'shutdown|exit|quit|end'\n"); - printf(" To know if server is alive:\n"); - printf(" 'alive|status'\n"); + ShowInfo(CL_BOLD"Help of commands:"CL_RESET"\n"); + ShowInfo(" To shutdown the server:\n"); + ShowInfo(" 'shutdown|exit|quit|end'\n"); + ShowInfo(" To know if server is alive:\n"); + ShowInfo(" 'alive|status'\n"); } return 0; |