mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-13 12:39:05 -04:00
Give modeclasses access to Server* Srv via constructor
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4208 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
197b8f7fbe
commit
df624daa3f
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user