summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-12 20:57:04 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-12 20:57:04 +0000
commitcc9854655d57d49aec35150799e125b0fbe23dce (patch)
tree7f3d4bd3e04919e9654e17d3ee10b96cf6224e01 /src
parentacc4f158a3fa3d42eee440d694f05c06e0e75221 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_chanprotect.cpp4
1 files 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)
{
}