]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_autoop.cpp
Merge pull request #714 from SaberUK/insp20+fix-helpop
[user/henk/code/inspircd.git] / src / modules / m_autoop.cpp
index 40a57d7c3cf7024c2ffd53ba4d508f573716601f..07dca6929fef2f9f2aa9006a051a59262941d7c6 100644 (file)
@@ -84,12 +84,16 @@ class ModuleAutoOp : public Module
 
 public:
        ModuleAutoOp() : mh(this)
+       {
+       }
+
+       void init()
        {
                ServerInstance->Modules->AddService(mh);
                mh.DoImplements(this);
 
                Implementation list[] = { I_OnPostJoin, };
-               ServerInstance->Modules->Attach(list, this, 1);
+               ServerInstance->Modules->Attach(list, this, sizeof(list)/sizeof(Implementation));
        }
 
        void OnPostJoin(Membership *memb)
@@ -123,11 +127,6 @@ public:
                }
        }
 
-       void OnCleanup(int target_type, void* item)
-       {
-               mh.DoCleanup(target_type, item);
-       }
-
        void OnSyncChannel(Channel* chan, Module* proto, void* opaque)
        {
                mh.DoSyncChannel(chan, proto, opaque);