]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_opermotd.cpp
Some more to fix still, modules probably wont load correctly atm
[user/henk/code/inspircd.git] / src / modules / m_opermotd.cpp
index fbc72aeea35f3fab362e6cddc0acc8470dbe21f8..86d928cb7c7ec0727b0bd0f555f11440099e0261 100644 (file)
@@ -83,6 +83,8 @@ class ModuleOpermotd : public Module
                ServerInstance->AddCommand(mycommand);
                opermotd = new FileReader(ServerInstance);
                LoadOperMOTD();
+               Implementation eventlist[] = { I_OnRehash, I_OnOper };
+               ServerInstance->Modules->Attach(eventlist, this, 2);
        }
 
        virtual ~ModuleOpermotd()