]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_namesx.cpp
Attach to events and register services in init()
[user/henk/code/inspircd.git] / src / modules / m_namesx.cpp
index e2b3efce391ed83ef13105ff432ea6242481ba68..15f6d44a681b0e14f4ea2849d3df3df587421210 100644 (file)
@@ -30,6 +30,10 @@ class ModuleNamesX : public Module
  public:
        GenericCap cap;
        ModuleNamesX() : cap(this, "multi-prefix")
+       {
+       }
+
+       void init()
        {
                Implementation eventlist[] = { I_OnPreCommand, I_OnNamesListItem, I_On005Numeric, I_OnEvent, I_OnSendWhoLine };
                ServerInstance->Modules->Attach(eventlist, this, 5);