]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_dccallow.cpp
Some more to fix still, modules probably wont load correctly atm
[user/henk/code/inspircd.git] / src / modules / m_dccallow.cpp
index 2b67654cc737585b3d1a2e057836108cd55c6805..e1fe7143b3a012e33c512a702fac42f9e3ad765b 100644 (file)
@@ -255,6 +255,8 @@ class ModuleDCCAllow : public Module
                mycommand = new CommandDccallow(ServerInstance);
                ServerInstance->AddCommand(mycommand);
                ReadFileConf();
+               Implementation eventlist[] = { I_OnUserPreMessage, I_OnUserPreNotice, I_OnUserQuit, I_OnUserPreNick, I_OnRehash };
+               ServerInstance->Modules->Attach(eventlist, this, 5);
        }
 
        void Implements(char* List)