diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-10-13 21:12:55 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-10-13 21:12:55 +0200 |
commit | 156c35c91f5c69a77a76f6b60db1ea61581bc13f (patch) | |
tree | 61e38f2b53de46ec7894cb31e43b7b530905faa0 /src/modules | |
parent | 1377fabfee72994531df274248ed0ce6de483dd2 (diff) |
m_nationalchars Rebuild the hash map in m_watch when the national_case_insensitive_map changes
Issue #923
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_nationalchars.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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: |