]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_operchans.cpp
Some more to fix still, modules probably wont load correctly atm
[user/henk/code/inspircd.git] / src / modules / m_operchans.cpp
index 2171db86079963ae0734713f5ee4154537e09a73..76ead18c30aa9fedd86ebad2da8d5b4cb3ee5f5d 100644 (file)
@@ -56,6 +56,8 @@ class ModuleOperChans : public Module
                oc = new OperChans(ServerInstance);
                if (!ServerInstance->AddMode(oc))
                        throw ModuleException("Could not add new modes!");
+               Implementation eventlist[] = { I_OnUserPreJoin };
+               ServerInstance->Modules->Attach(eventlist, this, 1);
        }
 
        void Implements(char* List)