diff options
author | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-11-20 13:24:15 +0000 |
---|---|---|
committer | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-11-20 13:24:15 +0000 |
commit | a10e65fdc82e4073909354e760c95080a407d25e (patch) | |
tree | 9584accc18962093148329ef6ccb26cf72491171 /src/char/inter.c | |
parent | f8b4fc65481df7c8c3d831677763387d7effb863 (diff) | |
download | hercules-a10e65fdc82e4073909354e760c95080a407d25e.tar.gz hercules-a10e65fdc82e4073909354e760c95080a407d25e.tar.bz2 hercules-a10e65fdc82e4073909354e760c95080a407d25e.tar.xz hercules-a10e65fdc82e4073909354e760c95080a407d25e.zip |
Console clean up, dropped quite a few pointless messages and modified others to only be displayed when relevant (e.g. you dont need to know you have only 1 subnetwork)
Improved the debugging of scripts when an amount greater than supported of arguments is used.
Follow up r16935 -- commit missed the script.c part of it.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16936 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char/inter.c')
-rw-r--r-- | src/char/inter.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/char/inter.c b/src/char/inter.c index 4cbb1e32b..6f09fa9d7 100644 --- a/src/char/inter.c +++ b/src/char/inter.c @@ -698,8 +698,6 @@ static int inter_config_read(const char* cfgName) return 1; } - ShowInfo("reading file %s...\n", cfgName); - while(fgets(line, sizeof(line), fp)) { i = sscanf(line, "%[^:]: %[^\r\n]", w1, w2); @@ -708,27 +706,21 @@ static int inter_config_read(const char* cfgName) if(!strcmpi(w1,"char_server_ip")) { strcpy(char_server_ip,w2); - ShowStatus ("set char_server_ip : %s\n", w2); } else if(!strcmpi(w1,"char_server_port")) { char_server_port = atoi(w2); - ShowStatus ("set char_server_port : %s\n", w2); } else if(!strcmpi(w1,"char_server_id")) { strcpy(char_server_id,w2); - ShowStatus ("set char_server_id : %s\n", w2); } else if(!strcmpi(w1,"char_server_pw")) { strcpy(char_server_pw,w2); - ShowStatus ("set char_server_pw : %s\n", w2); } else if(!strcmpi(w1,"char_server_db")) { strcpy(char_server_db,w2); - ShowStatus ("set char_server_db : %s\n", w2); } else if(!strcmpi(w1,"default_codepage")) { strcpy(default_codepage,w2); - ShowStatus ("set default_codepage : %s\n", w2); } else if(!strcmpi(w1,"party_share_level")) party_share_level = atoi(w2); @@ -741,7 +733,7 @@ static int inter_config_read(const char* cfgName) } fclose(fp); - ShowInfo ("done reading %s.\n", cfgName); + ShowInfo ("Done reading %s.\n", cfgName); return 0; } @@ -769,7 +761,6 @@ int inter_init_sql(const char *file) { //int i; - ShowInfo ("interserver initialize...\n"); inter_config_read(file); //DB connection initialized |