From beaaee86df1e13f68fc5d6fb1f0ce61e3d3412a9 Mon Sep 17 00:00:00 2001 From: w00t Date: Tue, 1 Apr 2008 11:13:36 +0000 Subject: [PATCH] Add a required prefix of 0, this may fix problem encountered by Raff7.. (purely cosmetic, though, as the internal code for +qa had checks on who could set it aside from prefix-only.. brain, can you review this and tell me if this is correct pls? git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9240 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_chanprotect.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/m_chanprotect.cpp b/src/modules/m_chanprotect.cpp index 86f5e946a..853d65159 100644 --- a/src/modules/m_chanprotect.cpp +++ b/src/modules/m_chanprotect.cpp @@ -165,7 +165,7 @@ class ChanFounder : public ModeHandler, public FounderProtectBase char* dummyptr; public: ChanFounder(InspIRCd* Instance, bool using_prefixes, bool &depriv_self, bool &depriv_others) - : ModeHandler(Instance, 'q', 1, 1, true, MODETYPE_CHANNEL, false, using_prefixes ? '~' : 0), + : ModeHandler(Instance, 'q', 1, 1, true, MODETYPE_CHANNEL, false, using_prefixes ? '~' : 0, 0), FounderProtectBase(Instance, "cm_founder_", "founder", 386, 387, depriv_self, depriv_others) { } unsigned int GetPrefixRank() @@ -227,7 +227,7 @@ class ChanProtect : public ModeHandler, public FounderProtectBase char* dummyptr; public: ChanProtect(InspIRCd* Instance, bool using_prefixes, bool &depriv_self, bool &depriv_others) - : ModeHandler(Instance, 'a', 1, 1, true, MODETYPE_CHANNEL, false, using_prefixes ? '&' : 0), + : ModeHandler(Instance, 'a', 1, 1, true, MODETYPE_CHANNEL, false, using_prefixes ? '&' : 0, 0), FounderProtectBase(Instance,"cm_protect_","protected user", 388, 389, depriv_self, depriv_others) { } unsigned int GetPrefixRank() -- 2.39.2