diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-11-10 16:16:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-11-15 19:26:02 +0300 |
commit | a74ad535b6c048994bce887134c710676abc2147 (patch) | |
tree | 648b04f628cb9ee65c84e297b47dbf6b6a91c780 /src/common/HPMi.h | |
parent | 66ccb5adb45411adaef7ab45d2dc7fe1741ebdcc (diff) | |
download | hercules-a74ad535b6c048994bce887134c710676abc2147.tar.gz hercules-a74ad535b6c048994bce887134c710676abc2147.tar.bz2 hercules-a74ad535b6c048994bce887134c710676abc2147.tar.xz hercules-a74ad535b6c048994bce887134c710676abc2147.zip |
Add support for plugin options in map server config (script.conf).
Diffstat (limited to 'src/common/HPMi.h')
-rw-r--r-- | src/common/HPMi.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/HPMi.h b/src/common/HPMi.h index 10a5ec082..0f2bed10d 100644 --- a/src/common/HPMi.h +++ b/src/common/HPMi.h @@ -90,6 +90,7 @@ enum HPluginConfType { HPCT_CHAR_INTER, /* inter-server.conf (char-server) */ HPCT_MAP_INTER, /* inter-server.conf (map-server) */ HPCT_LOG, /* logs.conf (map-server) */ + HPCT_SCRIPT, /* script.conf (map-server) */ HPCT_MAX, }; @@ -172,6 +173,8 @@ enum HPluginConfType { #define addMapInterConf(bcname,funcname) HPMi->addConf(HPMi->pid,HPCT_MAP_INTER,bcname,funcname) /* HPMi->addLog */ #define addLogConf(bcname,funcname) HPMi->addConf(HPMi->pid,HPCT_LOG,bcname,funcname) +/* HPMi->addScript */ +#define addScriptConf(bcname,funcname) HPMi->addConf(HPMi->pid,HPCT_SCRIPT,bcname,funcname) /* HPMi->addPCGPermission */ #define addGroupPermission(pcgname,maskptr) HPMi->addPCGPermission(HPMi->pid,pcgname,&maskptr) |