]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_timedbans.cpp
m_messageflood Ask to be the last to handle OnUserPreMessage/OnUserPreNotice
[user/henk/code/inspircd.git] / src / modules / m_timedbans.cpp
index 70027473f2c91d3eaeb6d484b54ff058bf60a8f7..90e814a187d2af00c5e42e341fe16d6768593a6b 100644 (file)
@@ -116,9 +116,9 @@ class ModuleTimedBans : public Module
 
        void init()
        {
-               ServerInstance->AddCommand(&cmd);
+               ServerInstance->Modules->AddService(cmd);
                Implementation eventlist[] = { I_OnDelBan, I_OnBackgroundTimer };
-               ServerInstance->Modules->Attach(eventlist, this, 2);
+               ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
        }
 
        virtual ModResult OnDelBan(User* source, Channel* chan, const std::string &banmask)