]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_uhnames.cpp
m_spanningtree Fix crash when connecting to a remote server that has the same name...
[user/henk/code/inspircd.git] / src / modules / m_uhnames.cpp
index e446f88e8f9687f875e4ad43a29e97bad6c21fa3..2cd090f977de7b7cfbef310794ac5821ddf05080 100644 (file)
@@ -36,7 +36,7 @@ class ModuleUHNames : public Module
        void init()
        {
                Implementation eventlist[] = { I_OnEvent, I_OnPreCommand, I_OnNamesListItem, I_On005Numeric };
-               ServerInstance->Modules->Attach(eventlist, this, 4);
+               ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
        }
 
        ~ModuleUHNames()