From: Attila Molnar Date: Mon, 13 Oct 2014 19:18:12 +0000 (+0200) Subject: m_nationalchars Ask m_spanningtree to rebuild its hashmaps when the national_case_ins... X-Git-Tag: v2.0.23~131 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=856d1b422b286dd569a48dd538d3e720ee29fd5d;p=user%2Fhenk%2Fcode%2Finspircd.git m_nationalchars Ask m_spanningtree to rebuild its hashmaps when the national_case_insensitive_map changes Issue #923 --- diff --git a/src/modules/m_nationalchars.cpp b/src/modules/m_nationalchars.cpp index e02a946f1..bf95f0f9f 100644 --- a/src/modules/m_nationalchars.cpp +++ b/src/modules/m_nationalchars.cpp @@ -244,6 +244,14 @@ class ModuleNationalChars : public Module Module* mod = ServerInstance->Modules->Find("m_watch.so"); if (mod) mod->OnGarbageCollect(); + + // Send a Request to m_spanningtree asking it to rebuild its hashmaps + mod = ServerInstance->Modules->Find("m_spanningtree.so"); + if (mod) + { + Request req(this, mod, "rehash"); + req.Send(); + } } public: