summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 1ca2b9be5..606f63f8b 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -5,10 +5,11 @@
#include <ctype.h>
#include <math.h>
-#include "socket.h"
-#include "timer.h"
-#include "nullpo.h"
+#include "../common/socket.h"
+#include "../common/timer.h"
+#include "../common/nullpo.h"
+#include "log.h"
#include "clif.h"
#include "chrif.h"
#include "intif.h"
@@ -673,6 +674,9 @@ is_atcommand(const int fd, struct map_session_data* sd, const char* message, int
}
}
+ if((log_config.gm) && (info.level >= log_config.gm))
+ log_atcommand(sd, message);
+
return info.type;
}