]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
m_nationalchars Rebuild the hash map in m_watch when the national_case_insensitive_ma...
authorAttila Molnar <attilamolnar@hush.com>
Mon, 13 Oct 2014 19:12:55 +0000 (21:12 +0200)
committerAttila Molnar <attilamolnar@hush.com>
Mon, 13 Oct 2014 19:12:55 +0000 (21:12 +0200)
Issue #923

src/modules/m_nationalchars.cpp

index 20e4eaa9e6a39fce172c4b1ee1ddb6f1d495dbd0..e02a946f17aff9b1667c8769303f67ca2d835beb 100644 (file)
@@ -239,6 +239,11 @@ class ModuleNationalChars : public Module
                memcpy(prev_map, national_case_insensitive_map, sizeof(prev_map));
 
                ServerInstance->RehashUsersAndChans();
+
+               // The OnGarbageCollect() method in m_watch rebuilds the hashmap used by it
+               Module* mod = ServerInstance->Modules->Find("m_watch.so");
+               if (mod)
+                       mod->OnGarbageCollect();
        }
 
  public: