X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_services_account.cpp;h=739ad611972370045a242fe012f708fcba8dba0a;hb=3a7dd5b129450b94e0a87b8ad5009da70905b8e5;hp=97233a7d3f61c72cff6a7a72f29a94392e060164;hpb=1afe959c7574b479e4a49a62885d2ac2757025ab;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_services_account.cpp b/src/modules/m_services_account.cpp index 97233a7d3..739ad6119 100644 --- a/src/modules/m_services_account.cpp +++ b/src/modules/m_services_account.cpp @@ -24,6 +24,8 @@ using namespace std; /* $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: @@ -52,6 +54,8 @@ class AChannel_R : public ModeHandler } }; +/** User mode +R - unidentified users cannot message + */ class AUser_R : public ModeHandler { public: @@ -80,6 +84,8 @@ class AUser_R : public ModeHandler } }; +/** Channel mode +M - unidentified users cannot message channel + */ class AChannel_M : public ModeHandler { public: @@ -99,7 +105,7 @@ class AChannel_M : public ModeHandler { if (channel->IsModeSet('M')) { - channel->SetMode('M',true); + channel->SetMode('M',false); return MODEACTION_ALLOW; } } @@ -305,6 +311,9 @@ class ModuleServicesAccount : public Module virtual ~ModuleServicesAccount() { + ServerInstance->Modes->DelMode(m1); + ServerInstance->Modes->DelMode(m2); + ServerInstance->Modes->DelMode(m3); DELETE(m1); DELETE(m2); DELETE(m3); @@ -312,7 +321,7 @@ class ModuleServicesAccount : public Module virtual Version GetVersion() { - return Version(1,0,0,0,VF_STATIC|VF_VENDOR); + return Version(1,0,0,0,VF_COMMON|VF_VENDOR); } };