summaryrefslogtreecommitdiff
path: root/modules/core/os_restart.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-02-11 03:12:39 -0500
committerAdam <Adam@anope.org>2011-02-11 03:12:39 -0500
commit2529ff6daef7eb387d2fce4c6df5a31029fd5bb2 (patch)
tree25c4cf0c84bef8b47c3824ba827b3816b8f17221 /modules/core/os_restart.cpp
parent7bdf592f7ea2d527930ada96d8e07fae966239d4 (diff)
Made the help command description code more sane
Diffstat (limited to 'modules/core/os_restart.cpp')
-rw-r--r--modules/core/os_restart.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/modules/core/os_restart.cpp b/modules/core/os_restart.cpp
index e0c2bde45..f8580c577 100644
--- a/modules/core/os_restart.cpp
+++ b/modules/core/os_restart.cpp
@@ -18,6 +18,7 @@ class CommandOSRestart : public Command
public:
CommandOSRestart() : Command("RESTART", 0, 0, "operserv/restart")
{
+ this->SetDesc("Save databases and restart Services");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -27,7 +28,6 @@ class CommandOSRestart : public Command
if (Config->GlobalOnCycle)
oper_global("", "%s", Config->GlobalOnCycleMessage.c_str());
- /* raise(SIGHUP); */
do_restart_services();
return MOD_CONT;
}
@@ -40,11 +40,6 @@ class CommandOSRestart : public Command
"(i.e. exit and immediately re-run the executable)."));
return true;
}
-
- void OnServHelp(CommandSource &source)
- {
- source.Reply(_(" RESTART Save databases and restart Services"));
- }
};
class OSRestart : public Module