* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
- * InspIRCd: (C) 2002-2009 InspIRCd Development Team
+ * InspIRCd: (C) 2002-2010 InspIRCd Development Team
* See: http://wiki.inspircd.org/Credits
*
* This program is free but copyrighted software; see
ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding)
{
- User* theuser = ServerInstance->FindNick(parameter);
-
- if (!theuser)
- return MODEACTION_DENY;
return MODEACTION_ALLOW;
}
ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding)
{
- User* theuser = ServerInstance->FindNick(parameter);
-
- if (!theuser)
- return MODEACTION_DENY;
-
return MODEACTION_ALLOW;
}
ChanFounder cf;
public:
ModuleChanProtect() : cp(this), cf(this)
+ {
+ }
+
+ void init()
{
/* Load config stuff */
LoadSettings();
settings.booting = false;
- if (!ServerInstance->Modes->AddMode(&cp) || !ServerInstance->Modes->AddMode(&cf))
- {
- throw ModuleException("Could not add new modes!");
- }
+ ServerInstance->Modules->AddService(cf);
+ ServerInstance->Modules->AddService(cp);
Implementation eventlist[] = { I_OnUserPreJoin };
ServerInstance->Modules->Attach(eventlist, this, 1);
Version GetVersion()
{
- return Version("Founder and Protect modes (+qa)", VF_COMMON | VF_VENDOR);
+ return Version("Founder and Protect modes (+qa)", VF_VENDOR);
}
};