summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-09-06 13:05:28 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-09-06 13:05:28 +0000
commite9f1fd175bbdc7dde60f5ff05d9470b7efe798ba (patch)
treed3f59b20bc1b5fc9e6489ca78e25899a2baf5fca /src
parente853ec6473b874506b2036de2f76d6ae7cd34325 (diff)
Publish interface in chanfilter
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10408 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_chanfilter.cpp3
1 files changed, 3 insertions, 0 deletions
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);
}
};