From e9f1fd175bbdc7dde60f5ff05d9470b7efe798ba Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 6 Sep 2008 13:05:28 +0000 Subject: Publish interface in chanfilter git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10408 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_chanfilter.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/m_chanfilter.cpp b/src/modules/m_chanfilter.cpp index e33be91d9..5482e1e4b 100644 --- a/src/modules/m_chanfilter.cpp +++ b/src/modules/m_chanfilter.cpp @@ -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); } }; -- cgit v1.2.3