diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-09 13:15:12 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-09 13:15:12 +0000 |
commit | 197b8f7fbe24ccee909bc5dccf51384502817571 (patch) | |
tree | d02ef955226e5e74b899037153cf4b74a77b3608 /src | |
parent | 53e9170d39713fc74fcb4ca1effd21984a67b8d4 (diff) |
More typo fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4207 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_chanprotect.cpp | 12 |
1 files 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'); |