diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-09-06 13:05:28 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-09-06 13:05:28 +0000 |
commit | e9f1fd175bbdc7dde60f5ff05d9470b7efe798ba (patch) | |
tree | d3f59b20bc1b5fc9e6489ca78e25899a2baf5fca | |
parent | e853ec6473b874506b2036de2f76d6ae7cd34325 (diff) |
Publish interface in chanfilter
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10408 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/modules/m_chanfilter.cpp | 3 |
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); } }; |