summaryrefslogtreecommitdiff
path: root/src/char
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-15 11:27:05 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-15 19:26:02 +0300
commitee5f5980a70daf55e86cb02c5c70cfb08c3eb9c4 (patch)
tree8311696e2cfd703d0a7d93963df268e667fe7543 /src/char
parenta74ad535b6c048994bce887134c710676abc2147 (diff)
downloadhercules-ee5f5980a70daf55e86cb02c5c70cfb08c3eb9c4.tar.gz
hercules-ee5f5980a70daf55e86cb02c5c70cfb08c3eb9c4.tar.bz2
hercules-ee5f5980a70daf55e86cb02c5c70cfb08c3eb9c4.tar.xz
hercules-ee5f5980a70daf55e86cb02c5c70cfb08c3eb9c4.zip
In char server move config options handling by plugins into char_config_dispatch.
Diffstat (limited to 'src/char')
-rw-r--r--src/char/char.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/char/char.c b/src/char/char.c
index bf6019ad5..d358a02e8 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -5624,6 +5624,8 @@ void char_config_dispatch(char *w1, char *w2) {
if( (*dispatch_to[i])(w1,w2) )
break;/* we found who this belongs to, can stop */
}
+ if (i == len)
+ HPM->parseConf(w1, w2, HPCT_CHAR);
}
int char_config_read(const char* cfgName)
@@ -5789,8 +5791,6 @@ int char_config_read(const char* cfgName)
char_maintenance_min_group_id = atoi(w2);
} else if (strcmpi(w1, "import") == 0) {
chr->config_read(w2);
- } else if(HPM->parseConf(w1, w2, HPCT_CHAR)) {
- ; // handled by plugin
} else
chr->config_dispatch(w1,w2);
}