summaryrefslogtreecommitdiff
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:09:30 +0300
commit23d968ba2bcc856ada99ee9579fc0fdaafcc4426 (patch)
tree7d2d09bd7b76514b6f624750405ad3566ed32499
parentd0cd1c51be1cd980409a1412b3e16eeea4e1ae0d (diff)
downloadhercules-23d968ba2bcc856ada99ee9579fc0fdaafcc4426.tar.gz
hercules-23d968ba2bcc856ada99ee9579fc0fdaafcc4426.tar.bz2
hercules-23d968ba2bcc856ada99ee9579fc0fdaafcc4426.tar.xz
hercules-23d968ba2bcc856ada99ee9579fc0fdaafcc4426.zip
In char server move config options handling by plugins into char_config_dispatch.
-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);
}