* | 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
class AllowInvite : public SimpleChannelModeHandler
{
public:
- AllowInvite(InspIRCd* Instance, Module* Creator) : SimpleChannelModeHandler(Instance, Creator, 'A') { }
+ AllowInvite(Module* Creator) : SimpleChannelModeHandler(Creator, "allowinvite", 'A') { }
};
class ModuleAllowInvite : public Module
AllowInvite ni;
public:
- ModuleAllowInvite(InspIRCd* Me) : Module(Me), ni(Me, this)
+ ModuleAllowInvite() : ni(this)
{
if (!ServerInstance->Modes->AddMode(&ni))
throw ModuleException("Could not add new modes!");
virtual ~ModuleAllowInvite()
{
- ServerInstance->Modes->DelMode(&ni);
}
virtual Version GetVersion()
{
- return Version("$Id$",VF_COMMON|VF_VENDOR,API_VERSION);
+ return Version("Provides support for channel mode +A, allowing /invite freely on a channel (and extban A to allow specific users it)",VF_VENDOR);
}
};