diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-09 13:16:02 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-09 13:16:02 +0000 |
commit | df624daa3f38d7dbb932db67c53ab667bb4d542e (patch) | |
tree | c8429949297ade62599ff6498702030c5a34119c /src | |
parent | 197b8f7fbe24ccee909bc5dccf51384502817571 (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.cpp | 3 |
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 ¶meter, bool adding) { |