X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_banexception.cpp;h=ddf2fcb87efc7fb3c6e11224af263dedfd45998f;hb=46e56dedd37abe33af4e8b970d5b83729dc1ef05;hp=782f55b9253ceee99cd03a115b91f21745c68a41;hpb=9336468f5bfa60318cb57db5126047147b7a21cb;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_banexception.cpp b/src/modules/m_banexception.cpp index 782f55b92..ddf2fcb87 100644 --- a/src/modules/m_banexception.cpp +++ b/src/modules/m_banexception.cpp @@ -2,7 +2,7 @@ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * - * InspIRCd: (C) 2002-2009 InspIRCd Development Team + * InspIRCd: (C) 2002-2010 InspIRCd Development Team * See: http://wiki.inspircd.org/Credits * * This program is free but copyrighted software; see @@ -31,7 +31,7 @@ class BanException : public ListModeBase { public: - BanException(Module* Creator) : ListModeBase(Creator, 'e', "End of Channel Exception List", 348, 349, true) { } + BanException(Module* Creator) : ListModeBase(Creator, "banexception", 'e', "End of Channel Exception List", 348, 349, true) { } }; @@ -44,11 +44,10 @@ public: { if (!ServerInstance->Modes->AddMode(&be)) throw ModuleException("Could not add new modes!"); - ServerInstance->Modules->PublishInterface("ChannelBanList", this); be.DoImplements(this); - Implementation list[] = { I_OnRehash, I_OnRequest, I_On005Numeric, I_OnExtBanCheck, I_OnCheckChannelBan }; - ServerInstance->Modules->Attach(list, this, 5); + Implementation list[] = { I_OnRehash, I_On005Numeric, I_OnExtBanCheck, I_OnCheckChannelBan }; + ServerInstance->Modules->Attach(list, this, 4); } @@ -121,19 +120,9 @@ public: be.DoRehash(); } - const char* OnRequest(Request* request) - { - return be.DoOnRequest(request); - } - Version GetVersion() { - return Version("Provides support for the +e channel mode", VF_COMMON | VF_VENDOR, API_VERSION); - } - - ~ModuleBanException() - { - ServerInstance->Modules->UnpublishInterface("ChannelBanList", this); + return Version("Provides support for the +e channel mode", VF_VENDOR); } };