From 156c35c91f5c69a77a76f6b60db1ea61581bc13f Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Mon, 13 Oct 2014 21:12:55 +0200 Subject: m_nationalchars Rebuild the hash map in m_watch when the national_case_insensitive_map changes Issue #923 --- src/modules/m_nationalchars.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/modules/m_nationalchars.cpp') diff --git a/src/modules/m_nationalchars.cpp b/src/modules/m_nationalchars.cpp index 20e4eaa9e..e02a946f1 100644 --- a/src/modules/m_nationalchars.cpp +++ b/src/modules/m_nationalchars.cpp @@ -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: -- cgit v1.2.3