From 856d1b422b286dd569a48dd538d3e720ee29fd5d Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Mon, 13 Oct 2014 21:18:12 +0200 Subject: m_nationalchars Ask m_spanningtree to rebuild its hashmaps when the national_case_insensitive_map changes Issue #923 --- src/modules/m_nationalchars.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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: -- cgit v1.2.3