]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_helpop.cpp
Fix NICKLOCK/SANICK errors with Q:lined nicks
[user/henk/code/inspircd.git] / src / modules / m_helpop.cpp
index 6533aa5953529730e4c5765b6bc561335afea374..5cd8d8ea0701f1845a3ccdc4a4b100f2f75603dd 100644 (file)
@@ -118,16 +118,19 @@ class ModuleHelpop : public Module
        public:
                ModuleHelpop()
                        : cmd(this), ho(this)
+               {
+               }
+
+               void init()
                {
                        ReadConfig();
-                       if (!ServerInstance->Modes->AddMode(&ho))
-                               throw ModuleException("Could not add new modes!");
-                       ServerInstance->AddCommand(&cmd);
+                       ServerInstance->Modules->AddService(ho);
+                       ServerInstance->Modules->AddService(cmd);
                        Implementation eventlist[] = { I_OnRehash, I_OnWhois };
                        ServerInstance->Modules->Attach(eventlist, this, 2);
                }
 
-               virtual void ReadConfig()
+               void ReadConfig()
                {
                        ConfigReader MyConf;
 
@@ -182,7 +185,7 @@ class ModuleHelpop : public Module
 
                virtual Version GetVersion()
                {
-                       return Version("/helpop Command, Works like Unreal helpop", VF_VENDOR | VF_COMMON);
+                       return Version("/helpop Command, Works like Unreal helpop", VF_VENDOR);
                }
 };