summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-10-13 21:18:12 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-10-13 21:18:12 +0200
commit856d1b422b286dd569a48dd538d3e720ee29fd5d (patch)
treebb7c8f892ab5a50d4dfde72595446877784e6e39 /src
parent48253b1103dcdcd8252808bd021519772b223143 (diff)
m_nationalchars Ask m_spanningtree to rebuild its hashmaps when the national_case_insensitive_map changes
Issue #923
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_nationalchars.cpp8
1 files changed, 8 insertions, 0 deletions
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: