summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-09 13:16:02 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-09 13:16:02 +0000
commitdf624daa3f38d7dbb932db67c53ab667bb4d542e (patch)
treec8429949297ade62599ff6498702030c5a34119c /src
parent197b8f7fbe24ccee909bc5dccf51384502817571 (diff)
Give modeclasses access to Server* Srv via constructor
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4208 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_chanprotect.cpp3
1 files changed, 2 insertions, 1 deletions
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 &parameter, bool adding)
{