summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorcodemaster <codemaster@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-15 22:50:27 +0000
committercodemaster <codemaster@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-15 22:50:27 +0000
commitf1e7f008b43f5fe7d78653d52afb65f30cde1f4b (patch)
tree58a6175ffe8d84f0bc944b364b85a5a482bd023c /src/map/atcommand.c
parent76b827abe843bee3015418a094f9a92cfa37fbd0 (diff)
downloadhercules-f1e7f008b43f5fe7d78653d52afb65f30cde1f4b.tar.gz
hercules-f1e7f008b43f5fe7d78653d52afb65f30cde1f4b.tar.bz2
hercules-f1e7f008b43f5fe7d78653d52afb65f30cde1f4b.tar.xz
hercules-f1e7f008b43f5fe7d78653d52afb65f30cde1f4b.zip
Added More Options To log configAdded GM Command Logs
Added TXT Logs + TXT Log Options git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@197 54d463be-8e91-2dee-dedb-b68131a5f0ec
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;
}