From cc9854655d57d49aec35150799e125b0fbe23dce Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 12 Dec 2006 20:57:04 +0000 Subject: Make FounderProtectBase::remove_own_privs a reference, so we can change it on the fly without needing to re-construct the objects git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5966 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 390844ac6..1b1ebba40 100644 --- a/src/modules/m_chanprotect.cpp +++ b/src/modules/m_chanprotect.cpp @@ -45,9 +45,9 @@ class FounderProtectBase int end; char* dummyptr; protected: - bool remove_own_privs; + bool& remove_own_privs; public: - FounderProtectBase(InspIRCd* Instance, const std::string &ext, const std::string &mtype, int l, int e, bool remove_own) : + FounderProtectBase(InspIRCd* Instance, const std::string &ext, const std::string &mtype, int l, int e, bool &remove_own) : MyInstance(Instance), extend(ext), type(mtype), list(l), end(e), remove_own_privs(remove_own) { } -- cgit v1.2.3