1
0
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:
Adam
2011-02-11 03:12:39 -05:00
parent 7bdf592f7e
commit 2529ff6dae
148 changed files with 215 additions and 939 deletions
+1 -6
View File
@@ -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