diff options
author | codemaster <codemaster@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-01-04 22:13:58 +0000 |
---|---|---|
committer | codemaster <codemaster@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-01-04 22:13:58 +0000 |
commit | dc28241d3c6716fed00b78d9a6977f89c4644178 (patch) | |
tree | 33a7686aa2a53ddfebe68d0e2288e0434f98ee5d /src/map/log.c | |
parent | 51f5bae697fac9db3af051bcb5c156c94984fc18 (diff) | |
download | hercules-dc28241d3c6716fed00b78d9a6977f89c4644178.tar.gz hercules-dc28241d3c6716fed00b78d9a6977f89c4644178.tar.bz2 hercules-dc28241d3c6716fed00b78d9a6977f89c4644178.tar.xz hercules-dc28241d3c6716fed00b78d9a6977f89c4644178.zip |
* Fixed GM Command Logging (Not sure why TXT logging still isn't working properly :( ) [Codemaster] [SVN 907]
* Fixed one of Lupus' additions to the item_db [Codemaster] [SVN 907]
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@907 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/log.c')
-rw-r--r-- | src/map/log.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/map/log.c b/src/map/log.c index 770d6acca..67b32af4b 100644 --- a/src/map/log.c +++ b/src/map/log.c @@ -466,51 +466,51 @@ int log_config_read(char *cfgName) else if(strcmpi(w1, "log_branch") == 0) { strcpy(log_config.log_branch, w2); - if(log_config.branch == 1) + if(log_config.branch > 0 && log_config.sql_logs < 1) printf("Logging Dead Branch Usage to file `%s`.txt\n", w2); } else if(strcmpi(w1, "log_drop") == 0) { strcpy(log_config.log_drop, w2); - if(log_config.drop == 1) + if(log_config.drop > 0 && log_config.sql_logs < 1) printf("Logging Item Drops to file `%s`.txt\n", w2); } else if(strcmpi(w1, "log_mvpdrop") == 0) { strcpy(log_config.log_mvpdrop, w2); - if(log_config.mvpdrop == 1) + if(log_config.mvpdrop > 0 && log_config.sql_logs < 1) printf("Logging MVP Drops to file `%s`.txt\n", w2); } else if(strcmpi(w1, "log_present") == 0) { strcpy(log_config.log_present, w2); - if(log_config.present == 1) + if(log_config.present > 0 && log_config.sql_logs < 1) printf("Logging Present Usage & Results to file `%s`.txt\n", w2); } else if(strcmpi(w1, "log_produce") == 0) { strcpy(log_config.log_produce, w2); - if(log_config.produce == 1) + if(log_config.produce > 0 && log_config.sql_logs < 1) printf("Logging Producing to file `%s`.txt\n", w2); } else if(strcmpi(w1, "log_refine") == 0) { strcpy(log_config.log_refine, w2); - if(log_config.refine == 1) + if(log_config.refine > 0 && log_config.sql_logs < 1) printf("Logging Refining to file `%s`.txt\n", w2); } else if(strcmpi(w1, "log_trade") == 0) { strcpy(log_config.log_trade, w2); - if(log_config.trade == 1) + if(log_config.trade > 0 && log_config.sql_logs < 1) { printf("Logging Item Trades"); - if(log_config.zeny == 1) + if(log_config.zeny > 0) printf("and Zeny Trades"); printf(" to file `%s`.txt\n", w2); } } else if(strcmpi(w1, "log_vend") == 0) { strcpy(log_config.log_vend, w2); - if(log_config.vend == 1) + if(log_config.vend > 0 && log_config.sql_logs < 1) printf("Logging Vending to file `%s`.txt\n", w2); } else if(strcmpi(w1, "log_gm") == 0) { strcpy(log_config.log_gm, w2); - if(log_config.gm > 0) + if(log_config.gm > 0 && log_config.sql_logs < 1) printf("Logging GM Level %d Commands to file `%s`.txt\n", log_config.gm, w2); } else if(strcmpi(w1, "log_npc") == 0) { strcpy(log_config.log_npc, w2); - if(log_config.npc > 0) + if(log_config.npc > 0 && log_config.sql_logs < 1) printf("Logging NPC 'logmes' to file `%s`.txt\n", w2); //support the import command, just like any other config - } else if(strcmpi(w1,"import")==0){ + } else if(strcmpi(w1,"import") == 0) { log_config_read(w2); } } |