]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_chanfilter.cpp
Fix for bug #601
[user/henk/code/inspircd.git] / src / modules / m_chanfilter.cpp
index e33be91d9583d5bed0d29df664b0b594b2ca7e10..5482e1e4b0cf92eb3ca6474c5301e87a90021b38 100644 (file)
@@ -72,6 +72,8 @@ class ModuleChanFilter : public Module
                cf->DoImplements(this);
                Implementation eventlist[] = { I_OnCleanup, I_OnChannelDelete, I_OnRehash, I_OnUserPreMessage, I_OnUserPreNotice, I_OnSyncChannel };
                ServerInstance->Modules->Attach(eventlist, this, 6);
+
+               ServerInstance->Modules->PublishInterface("ChannelBanList", this);
        }
 
        virtual void OnChannelDelete(Channel* chan)
@@ -145,6 +147,7 @@ class ModuleChanFilter : public Module
        {
                ServerInstance->Modes->DelMode(cf);
                delete cf;
+               ServerInstance->Modules->UnpublishInterface("ChannelBanList", this);
        }
 };