From ee5f5980a70daf55e86cb02c5c70cfb08c3eb9c4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 15 Nov 2014 11:27:05 +0300 Subject: In char server move config options handling by plugins into char_config_dispatch. --- src/char/char.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/char/char.c') 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); } -- cgit v1.2.3-60-g2f50