diff options
author | brianluau <brianluau@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-12-24 15:02:02 +0000 |
---|---|---|
committer | brianluau <brianluau@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-12-24 15:02:02 +0000 |
commit | 68d8ee552a2b39cd0c5b2fc75c1335d221f68010 (patch) | |
tree | 9988607686674533a8df9fd54aed9abc60561e0f /src/map/atcommand.c | |
parent | 7e87540cb599bacb187ffb9557a55e73190b4c6c (diff) | |
download | hercules-68d8ee552a2b39cd0c5b2fc75c1335d221f68010.tar.gz hercules-68d8ee552a2b39cd0c5b2fc75c1335d221f68010.tar.bz2 hercules-68d8ee552a2b39cd0c5b2fc75c1335d221f68010.tar.xz hercules-68d8ee552a2b39cd0c5b2fc75c1335d221f68010.zip |
* Merged changes up to eAthena 15040 (follow up to r15245, fixed some errors).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15248 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r-- | src/map/atcommand.c | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 8da3fa296..204656285 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -9253,12 +9253,13 @@ bool is_atcommand(const int fd, struct map_session_data* sd, const char* message } //Log atcommands - if( log_config.gm && info->level >= log_config.gm && *atcmd_msg == atcommand_symbol ) - log_atcommand(sd, atcmd_msg); + if( *atcmd_msg == atcommand_symbol ) + log_atcommand(sd, info->level, atcmd_msg); + //Log Charcommands - else if( log_config.gm && info->level2 >= log_config.gm && *atcmd_msg == charcommand_symbol && ssd != NULL ) - log_atcommand(sd, message); - + if( *atcmd_msg == charcommand_symbol && ssd != NULL ) + log_atcommand(sd, info->level2, 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) ) @@ -9268,14 +9269,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( *atcmd_msg == atcommand_symbol ) - log_atcommand(sd, info->level, atcmd_msg); - - //Log Charcommands - if( *atcmd_msg == charcommand_symbol && ssd != NULL ) - log_atcommand(sd, info->level2, message); - return true; } |