]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_muteban.cpp
m_namedmodes Only show chan key to members and opers with channels/auspex
[user/henk/code/inspircd.git] / src / modules / m_muteban.cpp
index 03e3d646e12cd5cfee7b676808d6f427076862c1..767af29017b7dde4751342f3918a479e3fac4564 100644 (file)
@@ -26,9 +26,10 @@ class ModuleQuietBan : public Module
 {
  private:
  public:
-       ModuleQuietBan()        {
+       void init()
+       {
                Implementation eventlist[] = { I_OnUserPreMessage, I_OnUserPreNotice, I_On005Numeric };
-               ServerInstance->Modules->Attach(eventlist, this, 3);
+               ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
        }
 
        virtual ~ModuleQuietBan()