X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_inviteexception.cpp;h=dfe796b8bfba1b4cdfd7b4306819bfed30a1dba5;hb=2db77cda56947d4ee0f913c8082f6607855ca713;hp=a29e8e4ba2ea9717bf3e59b52aa80d64fa9a4ec2;hpb=6fa2633311098d9775593186f5f5e1d339434cd2;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_inviteexception.cpp b/src/modules/m_inviteexception.cpp index a29e8e4ba..dfe796b8b 100644 --- a/src/modules/m_inviteexception.cpp +++ b/src/modules/m_inviteexception.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 @@ -44,7 +44,7 @@ public: ModuleInviteException(InspIRCd* Me) : Module(Me) { ie = new InviteException(ServerInstance); - if (!ServerInstance->AddMode(ie)) + if (!ServerInstance->Modes->AddMode(ie)) throw ModuleException("Could not add new modes!"); ServerInstance->Modules->PublishInterface("ChannelBanList", this); @@ -83,7 +83,7 @@ public: return 0; } - virtual char* OnRequest(Request* request) + virtual const char* OnRequest(Request* request) { ListModeRequest* LM = (ListModeRequest*)request; if (strcmp("LM_CHECKLIST", request->GetId()) == 0) @@ -130,7 +130,7 @@ public: virtual Version GetVersion() { - return Version(1, 1, 0, 3, VF_VENDOR | VF_COMMON, API_VERSION); + return Version(1, 2, 0, 3, VF_VENDOR | VF_COMMON, API_VERSION); } ~ModuleInviteException()