]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/commands/cmd_restart.cpp
Update m_cloaking to use free-form keys instead of weakening the hash IV
[user/henk/code/inspircd.git] / src / commands / cmd_restart.cpp
index 964c7755f01407d47c12352808876c58fd34287d..e83f3f381d5614a6b8402ae2898b3b7ee1b6ce86 100644 (file)
  */
 
 #include "inspircd.h"
-#include "commands/cmd_restart.h"
 
-extern "C" DllExport Command* init_command(InspIRCd* Instance)
+/** Handle /RESTART
+ */
+class CommandRestart : public Command
 {
-       return new CommandRestart(Instance);
-}
+ public:
+       /** Constructor for restart.
+        */
+       CommandRestart(Module* parent) : Command(parent,"RESTART",1,1) { flags_needed = 'o'; syntax = "<password>"; }
+       /** Handle command.
+        * @param parameters The parameters to the comamnd
+        * @param pcnt The number of parameters passed to teh command
+        * @param user The user issuing the command
+        * @return A value from CmdResult to indicate command success or failure.
+        */
+       CmdResult Handle(const std::vector<std::string>& parameters, User *user);
+};
 
 CmdResult CommandRestart::Handle (const std::vector<std::string>& parameters, User *user)
 {
@@ -45,3 +56,5 @@ CmdResult CommandRestart::Handle (const std::vector<std::string>& parameters, Us
        return CMD_SUCCESS;
 }
 
+
+COMMAND_INIT(CommandRestart)