diff options
author | Fangrui Song <i@maskray.me> | 2017-04-16 17:04:25 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2017-04-16 17:11:48 -0700 |
commit | 17a58dfa0049ebb77d2e48672322eff8bcd0c23d (patch) | |
tree | 8d543464e51539360186d9145f14e6939e8b2a7b /storage_xml.c | |
parent | 55bc71e550bc798a8edf968474e4642c3f79ba63 (diff) |
Move `handle_settings` before `xt_handle`.
`utf8_nicks` should be enabled before handling `nick` fields in <setting> because `nick_strip` uses `IRC_UTF8_NICKS` which is only available after calling `handle_settings`.
Diffstat (limited to 'storage_xml.c')
-rw-r--r-- | storage_xml.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/storage_xml.c b/storage_xml.c index a921524f..cf4d35d7 100644 --- a/storage_xml.c +++ b/storage_xml.c @@ -293,12 +293,12 @@ static storage_status_t xml_load_real(irc_t *irc, const char *my_nick, const cha goto error; } + handle_settings(node, &xd->irc->b->set); + if (xt_handle(xp, NULL, 1) == XT_HANDLED) { ret = STORAGE_OK; } - handle_settings(node, &xd->irc->b->set); - error: xt_free(xp); g_free(fn); |