*/
#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)
{
return CMD_SUCCESS;
}
+
+COMMAND_INIT(CommandRestart)