From 1efdef1c054419ba1a0c8ee8836c5737228d579a Mon Sep 17 00:00:00 2001 From: Fate Date: Wed, 3 Dec 2008 19:54:23 -0700 Subject: GM commands can now be logged (specify a filename as gm_log in map_athena.conf). Added @log and @tee and @l and @t commands at level 60. --- src/map/map.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/map/map.c') diff --git a/src/map/map.c b/src/map/map.c index 30b9d78..3db293c 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -1648,6 +1648,8 @@ int map_delmap(char *mapname) { return 0; } +extern char *gm_logfile_name; + /*========================================== * 設定ファイルを読み込む *------------------------------------------ @@ -1715,6 +1717,8 @@ int map_config_read(char *cfgName) { strcpy(help_txt, w2); } else if (strcmpi(w1, "mapreg_txt") == 0) { strcpy(mapreg_txt, w2); + } else if (strcmpi(w1, "gm_log") == 0) { + gm_logfile_name = strdup(w2); } else if (strcmpi(w1, "import") == 0) { map_config_read(w2); } -- cgit v1.2.3-60-g2f50