X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_banexception.cpp;h=7c33e489e80881df653038967ba4f6d61fa57568;hb=c2957516bca0fe70622c7668a12ade68576ddab2;hp=cacba3150b7c8a4980c7530e54dc2f85d205bfdf;hpb=6fe38c14c157dc155f67baf8ba8e310f7752deb2;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_banexception.cpp b/src/modules/m_banexception.cpp index cacba3150..7c33e489e 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-2007 InspIRCd Development Team + * InspIRCd: (C) 2002-2008 InspIRCd Development Team * See: http://www.inspircd.org/wiki/index.php/Credits * * This program is free but copyrighted software; see @@ -42,17 +42,17 @@ class ModuleBanException : public Module public: - ModuleBanException(InspIRCd* Me) - : Module(Me) + ModuleBanException(InspIRCd* Me) : Module(Me) { be = new BanException(ServerInstance); - if (!ServerInstance->AddMode(be)) + if (!ServerInstance->Modes->AddMode(be)) throw ModuleException("Could not add new modes!"); ServerInstance->Modules->PublishInterface("ChannelBanList", this); - //be->DoImplements(List); + be->DoImplements(this); Implementation list[] = { I_OnRehash, I_OnRequest, I_On005Numeric, I_OnCheckBan }; Me->Modules->Attach(list, this, 4); + } virtual void On005Numeric(std::string &output) @@ -106,7 +106,7 @@ public: be->DoRehash(); } - virtual char* OnRequest(Request* request) + virtual const char* OnRequest(Request* request) { ListModeRequest* LM = (ListModeRequest*)request; if (strcmp("LM_CHECKLIST", request->GetId()) == 0) @@ -133,7 +133,7 @@ public: virtual Version GetVersion() { - return Version(1, 1, 0, 3, VF_COMMON | VF_VENDOR, API_VERSION); + return Version(1, 2, 0, 3, VF_COMMON | VF_VENDOR, API_VERSION); } virtual ~ModuleBanException()