]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_uhnames.cpp
Show a better warning when certtool/openssl are missing.
[user/henk/code/inspircd.git] / src / modules / m_uhnames.cpp
index 5693eb8070b8006a9907f55bfbf4af0cf256e808..2cd090f977de7b7cfbef310794ac5821ddf05080 100644 (file)
@@ -30,9 +30,13 @@ class ModuleUHNames : public Module
        GenericCap cap;
 
        ModuleUHNames() : cap(this, "userhost-in-names")
+       {
+       }
+
+       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()