]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_chanfilter.cpp
...and make it not go querying modules that dont implement the right interface and...
[user/henk/code/inspircd.git] / src / modules / m_chanfilter.cpp
index e33be91d9583d5bed0d29df664b0b594b2ca7e10..482902e0f07fcdd4796da556a27ccf35c980ab00 100644 (file)
@@ -2,7 +2,7 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2008 InspIRCd Development Team
+ *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
  * See: http://www.inspircd.org/wiki/index.php/Credits
  *
  * This program is free but copyrighted software; see
@@ -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);
        }
 };