]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_nationalchars.cpp
m_mysql Fix crash on rehash when the database tags have been changed in the config
[user/henk/code/inspircd.git] / src / modules / m_nationalchars.cpp
index c60f214e6c0dae2322eadb5638b43ca919363784..b43b6e2b6a05e55cdc9e0efd058790caa7a0545d 100644 (file)
@@ -243,7 +243,7 @@ class ModuleNationalChars : public Module
                ServerInstance->IsNick = &myhandler;
 
                Implementation eventlist[] = { I_OnRehash, I_On005Numeric };
-               ServerInstance->Modules->Attach(eventlist, this, 2);
+               ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
                OnRehash(NULL);
        }