diff options
author | Haruna <haru@dotalux.com> | 2014-11-15 17:33:46 +0100 |
---|---|---|
committer | Haruna <haru@dotalux.com> | 2014-11-15 17:33:46 +0100 |
commit | 27cd926dd2f41e008da738e8d9259cd0c33a2f77 (patch) | |
tree | fc62c34bea003f6d5839996474485d51ddf98ad6 /src/char/char.c | |
parent | 47565d423f40f4fbbbb032dcc6fa2f6670bfafab (diff) | |
parent | 35d190c1927d4405507490ac1a34c3e324d47762 (diff) | |
download | hercules-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/char/char.c')
-rw-r--r-- | src/char/char.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/char/char.c b/src/char/char.c index 0dd7aaa79..d358a02e8 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -5604,10 +5604,11 @@ void char_sql_config_read(const char* cfgName) safestrncpy(acc_reg_str_db, w2, sizeof(acc_reg_str_db)); else if(!strcmpi(w1,"acc_reg_num_db")) safestrncpy(acc_reg_num_db, w2, sizeof(acc_reg_num_db)); - //support the import command, just like any other config else if(!strcmpi(w1,"import")) chr->sql_config_read(w2); + else + HPM->parseConf(w1, w2, HPCT_CHAR_INTER); } fclose(fp); ShowInfo("Done reading %s.\n", cfgName); @@ -5623,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) |