]> 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 5023f4c01bd9a695e9c5712ac222eff9dc79a577..90e814a187d2af00c5e42e341fe16d6768593a6b 100644 (file)
@@ -116,7 +116,7 @@ class ModuleTimedBans : public Module
 
        void init()
        {
-               ServerInstance->AddCommand(&cmd);
+               ServerInstance->Modules->AddService(cmd);
                Implementation eventlist[] = { I_OnDelBan, I_OnBackgroundTimer };
                ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
        }