summaryrefslogtreecommitdiff
path: root/modules/core/os_restart.cpp
diff options
context:
space:
mode:
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