diff options
| author | 2009-09-13 20:32:27 +0000 | |
|---|---|---|
| committer | 2009-09-13 20:32:27 +0000 | |
| commit | 069a2ef21425007d092342c8c11ec28da2f410d7 (patch) | |
| tree | 30df16dcbf75bdeede41de270efcb055e0415617 /src/modules/m_setidle.cpp | |
| parent | Fix GetPrefixChar returning empty if a non-prefix mode was used (diff) | |
| download | inspircd++-069a2ef21425007d092342c8c11ec28da2f410d7.tar.gz inspircd++-069a2ef21425007d092342c8c11ec28da2f410d7.tar.bz2 inspircd++-069a2ef21425007d092342c8c11ec28da2f410d7.zip | |
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_setidle.cpp')
| -rw-r--r-- | src/modules/m_setidle.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_setidle.cpp b/src/modules/m_setidle.cpp index 17570d989..d5d397321 100644 --- a/src/modules/m_setidle.cpp +++ b/src/modules/m_setidle.cpp @@ -20,9 +20,9 @@ class CommandSetidle : public Command { public: - CommandSetidle (InspIRCd* Instance, Module* Creator) : Command(Instance, Creator,"SETIDLE", "o", 1) + CommandSetidle(Module* Creator) : Command(Creator,"SETIDLE", 1) { - syntax = "<duration>"; + flags_needed = 'o'; syntax = "<duration>"; TRANSLATE2(TR_TEXT, TR_END); } @@ -51,7 +51,7 @@ class ModuleSetIdle : public Module CommandSetidle cmd; public: ModuleSetIdle(InspIRCd* Me) - : Module(Me), cmd(Me, this) + : Module(Me), cmd(this) { ServerInstance->AddCommand(&cmd); } |
