From df624daa3f38d7dbb932db67c53ab667bb4d542e Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 9 Jul 2006 13:16:02 +0000 Subject: Give modeclasses access to Server* Srv via constructor git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4208 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_chanprotect.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/modules/m_chanprotect.cpp b/src/modules/m_chanprotect.cpp index 82f3b602f..40cd4f39a 100644 --- a/src/modules/m_chanprotect.cpp +++ b/src/modules/m_chanprotect.cpp @@ -98,8 +98,9 @@ class ChanFounder : public ModeHandler class ChanProtect : public ModeHandler { + Server* Srv; public: - ChanProtect() : ModeHandler('a', 1, 1, true, MODETYPE_CHANNEL, false) { } + ChanProtect(Server* s) : ModeHandler('a', 1, 1, true, MODETYPE_CHANNEL, false), Srv(s) { } ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding) { -- cgit v1.2.3