* | 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
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);
be->DoRehash();
}
- virtual char* OnRequest(Request* request)
+ virtual const char* OnRequest(Request* request)
{
ListModeRequest* LM = (ListModeRequest*)request;
if (strcmp("LM_CHECKLIST", request->GetId()) == 0)
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()