* | 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
{
hm = new HideChans(ServerInstance);
- if (!ServerInstance->AddMode(hm))
+ if (!ServerInstance->Modes->AddMode(hm))
throw ModuleException("Could not add new modes!");
+ Implementation eventlist[] = { I_OnWhoisLine };
+ ServerInstance->Modules->Attach(eventlist, this, 1);
}
- void Implements(char* List)
- {
- List[I_OnWhoisLine] = 1;
- }
virtual ~ModuleHideChans()
{
ServerInstance->Modes->DelMode(hm);
- DELETE(hm);
+ delete hm;
}
virtual Version GetVersion()