summaryrefslogtreecommitdiff
path: root/src/map/log.c
diff options
context:
space:
mode:
authorHaruna <haru@dotalux.com>2014-11-15 17:33:46 +0100
committerHaruna <haru@dotalux.com>2014-11-15 17:33:46 +0100
commit27cd926dd2f41e008da738e8d9259cd0c33a2f77 (patch)
treefc62c34bea003f6d5839996474485d51ddf98ad6 /src/map/log.c
parent47565d423f40f4fbbbb032dcc6fa2f6670bfafab (diff)
parent35d190c1927d4405507490ac1a34c3e324d47762 (diff)
downloadhercules-27cd926dd2f41e008da738e8d9259cd0c33a2f77.tar.gz
hercules-27cd926dd2f41e008da738e8d9259cd0c33a2f77.tar.bz2
hercules-27cd926dd2f41e008da738e8d9259cd0c33a2f77.tar.xz
hercules-27cd926dd2f41e008da738e8d9259cd0c33a2f77.zip
Merge pull request #389 from 4144/confplugins
Add support for plugin parameters in different config files (before was only battle config)
Diffstat (limited to 'src/map/log.c')
-rw-r--r--src/map/log.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/log.c b/src/map/log.c
index 3efcd09df..f0fd6795c 100644
--- a/src/map/log.c
+++ b/src/map/log.c
@@ -20,6 +20,7 @@
#include "../common/showmsg.h"
#include "../common/sql.h" // SQL_INNODB
#include "../common/strlib.h"
+#include "../common/HPM.h"
struct log_interface log_s;
@@ -453,6 +454,8 @@ int log_config_read(const char* cfgName) {
//support the import command, just like any other config
else if( strcmpi(w1,"import") == 0 )
logs->config_read(w2);
+ else if (HPM->parseConf(w1, w2, HPCT_LOG))
+ ; // handled by plugins
else
ShowWarning("Unknown setting '%s' in file %s\n", w1, cfgName);
}