diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-13 20:32:27 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-13 20:32:27 +0000 |
commit | 069a2ef21425007d092342c8c11ec28da2f410d7 (patch) | |
tree | 30df16dcbf75bdeede41de270efcb055e0415617 /src/modules/m_rline.cpp | |
parent | ca1b136b306784191235a6579da59f7e862003d1 (diff) |
Clean up Command constructor
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11707 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_rline.cpp')
-rw-r--r-- | src/modules/m_rline.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_rline.cpp b/src/modules/m_rline.cpp index 007ac0246..f3f27a9fb 100644 --- a/src/modules/m_rline.cpp +++ b/src/modules/m_rline.cpp @@ -121,9 +121,9 @@ class CommandRLine : public Command std::string rxengine; public: - CommandRLine (InspIRCd* Instance, Module* Creator) : Command(Instance, Creator,"RLINE", "o", 1, 3) + CommandRLine(Module* Creator) : Command(Creator,"RLINE", 1, 3) { - this->syntax = "<regex> [<rline-duration>] :<reason>"; + flags_needed = 'o'; this->syntax = "<regex> [<rline-duration>] :<reason>"; } CmdResult Handle (const std::vector<std::string>& parameters, User *user) @@ -198,7 +198,7 @@ class ModuleRLine : public Module std::string RegexEngine; public: - ModuleRLine(InspIRCd* Me) : Module(Me), r(Me, this), f(Me) + ModuleRLine(InspIRCd* Me) : Module(Me), r(this), f(Me) { mymodule = this; OnRehash(NULL); |