From 197b8f7fbe24ccee909bc5dccf51384502817571 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 9 Jul 2006 13:15:12 +0000 Subject: More typo fixes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4207 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_chanprotect.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/modules/m_chanprotect.cpp b/src/modules/m_chanprotect.cpp index e1b363cf3..82f3b602f 100644 --- a/src/modules/m_chanprotect.cpp +++ b/src/modules/m_chanprotect.cpp @@ -21,12 +21,13 @@ /* $ModDesc: Provides channel modes +a and +q */ -const char fakevalue* = "on"; +const char* fakevalue = "on"; class ChanFounder : public ModeHandler { + Server* Srv; public: - ChanFounder() : ModeHandler('q', 1, 1, true, MODETYPE_CHANNEL, false) { } + ChanFounder(Server* s) : ModeHandler('q', 1, 1, true, MODETYPE_CHANNEL, false), Srv(s) { } ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding) { @@ -176,14 +177,13 @@ class ModuleChanProtect : public Module public: - ModuleChanProtect(Server* Me) - : Module::Module(Me), Srv(Me) + ModuleChanProtect(Server* Me) : Module::Module(Me), Srv(Me) { /* Initialise module variables */ Conf = new ConfigReader; - cp = new ChanProtect(); - cf = new ChanFounder(); + cp = new ChanProtect(Me); + cf = new ChanFounder(Me); Srv->AddMode(cp, 'a'); Srv->AdDMode(cf, 'q'); -- cgit v1.2.3