]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
m_nationalchars Ask m_spanningtree to rebuild its hashmaps when the national_case_ins...
authorAttila Molnar <attilamolnar@hush.com>
Mon, 13 Oct 2014 19:18:12 +0000 (21:18 +0200)
committerAttila Molnar <attilamolnar@hush.com>
Mon, 13 Oct 2014 19:18:12 +0000 (21:18 +0200)
Issue #923

src/modules/m_nationalchars.cpp

index e02a946f17aff9b1667c8769303f67ca2d835beb..bf95f0f9f3992b70de15db10c427eb0ef2f1996e 100644 (file)
@@ -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: