* | 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:
NoKicks(InspIRCd* Instance) : ModeHandler(Instance, 'Q', 0, 0, false, MODETYPE_CHANNEL, false) { }
- ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding)
+ ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding, bool)
{
if (adding)
{
{
nk = new NoKicks(ServerInstance);
- if (!ServerInstance->AddMode(nk))
+ if (!ServerInstance->Modes->AddMode(nk))
throw ModuleException("Could not add new modes!");
Implementation eventlist[] = { I_OnAccessCheck };
ServerInstance->Modules->Attach(eventlist, this, 1);
}
- void Implements(char* List)
- {
- List[I_OnAccessCheck] = 1;
- }
virtual int OnAccessCheck(User* source,User* dest,Channel* channel,int access_type)
{