mirror of
https://github.com/anope/anope.git
synced 2026-06-30 17:26:39 +02:00
Made the help command description code more sane
This commit is contained in:
@@ -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> ¶ms)
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user