]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_chancreate.cpp
m_spanningtree Remove unneeded #includes
[user/henk/code/inspircd.git] / src / modules / m_chancreate.cpp
index 60dbed10b39a231ef7a749a9b2a8a641bfa2db09..5f04b4563e339046d83e16543af371c0f90bd111 100644 (file)
 
 class ModuleChanCreate : public Module
 {
- private:
  public:
        void init()
        {
                ServerInstance->SNO->EnableSnomask('j', "CHANCREATE");
                Implementation eventlist[] = { I_OnUserJoin };
-               ServerInstance->Modules->Attach(eventlist, this, 1);
+               ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
        }
 
        Version GetVersion()
@@ -39,7 +38,6 @@ class ModuleChanCreate : public Module
                return Version("Provides snomasks 'j' and 'J', to which notices about newly created channels are sent",VF_VENDOR);
        }
 
-
        void OnUserJoin(Membership* memb, bool sync, bool created, CUList& except)
        {
                if ((created) && (IS_LOCAL(memb->user)))