diff options
author | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-12-09 02:25:26 +0000 |
---|---|---|
committer | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-12-09 02:25:26 +0000 |
commit | 7d745f0f0ef4756e91ad55fd96d63016bc97df41 (patch) | |
tree | 143f9e7ba550403e42f89526658105b6b4e6412f /src | |
parent | c4e788ed84197cff57f51f9b0756ae8435aa9b1d (diff) | |
download | hercules-7d745f0f0ef4756e91ad55fd96d63016bc97df41.tar.gz hercules-7d745f0f0ef4756e91ad55fd96d63016bc97df41.tar.bz2 hercules-7d745f0f0ef4756e91ad55fd96d63016bc97df41.tar.xz hercules-7d745f0f0ef4756e91ad55fd96d63016bc97df41.zip |
@command log bug fix, bugreport:4010
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15036 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r-- | src/map/atcommand.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 0304788a8..c0a834593 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -9216,6 +9216,13 @@ bool is_atcommand(const int fd, struct map_session_data* sd, const char* message return false; } + //Log atcommands + if( log_config.gm && info->level >= log_config.gm && *atcmd_msg == atcommand_symbol ) + log_atcommand(sd, atcmd_msg); + //Log Charcommands + else if( log_config.gm && info->level2 >= log_config.gm && *atcmd_msg == charcommand_symbol && ssd != NULL ) + log_atcommand(sd, message); + //Attempt to use the command if( strcmpi("adjgmlvl",command+1) && ssd ) { lv = ssd->gmlevel; ssd->gmlevel = sd->gmlevel; } if ( (info->func(fd, (*atcmd_msg == atcommand_symbol) ? sd : ssd, command, params) != 0) ) @@ -9225,14 +9232,6 @@ bool is_atcommand(const int fd, struct map_session_data* sd, const char* message } if( strcmpi("adjgmlvl",command+1) && ssd ) ssd->gmlevel = lv; - //Log atcommands - if( log_config.gm && info->level >= log_config.gm && *atcmd_msg == atcommand_symbol ) - log_atcommand(sd, atcmd_msg); - - //Log Charcommands - if( log_config.gm && info->level2 >= log_config.gm && *atcmd_msg == charcommand_symbol && ssd != NULL ) - log_atcommand(sd, message); - return true; } |