/* $ModDesc: Povides support for ircu-style services accounts, including chmode +R, etc. */
+/** Channel mode +R - unidentified users cannot join
+ */
class AChannel_R : public ModeHandler
{
public:
}
};
+/** User mode +R - unidentified users cannot message
+ */
class AUser_R : public ModeHandler
{
public:
}
};
+/** Channel mode +M - unidentified users cannot message channel
+ */
class AChannel_M : public ModeHandler
{
public:
{
if (channel->IsModeSet('M'))
{
- channel->SetMode('M',true);
+ channel->SetMode('M',false);
return MODEACTION_ALLOW;
}
}
virtual ~ModuleServicesAccount()
{
+ ServerInstance->Modes->DelMode(m1);
+ ServerInstance->Modes->DelMode(m2);
+ ServerInstance->Modes->DelMode(m3);
DELETE(m1);
DELETE(m2);
DELETE(m3);
virtual Version GetVersion()
{
- return Version(1,0,0,0,VF_STATIC|VF_VENDOR);
+ return Version(1,0,0,0,VF_COMMON|VF_VENDOR);
}
};