X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmodules%2Fm_banexception.cpp;h=7c33e489e80881df653038967ba4f6d61fa57568;hb=c2957516bca0fe70622c7668a12ade68576ddab2;hp=dda6a5b1dd1490bb95dfa505042f4af99715d458;hpb=6fa2633311098d9775593186f5f5e1d339434cd2;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_banexception.cpp b/src/modules/m_banexception.cpp index dda6a5b1d..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 @@ -45,7 +45,7 @@ public: 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); @@ -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()