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()