X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcommands%2Fcmd_restart.cpp;h=e83f3f381d5614a6b8402ae2898b3b7ee1b6ce86;hb=26cd5393c9308fabe73c41870f06f73a5b001cd7;hp=ffd0323b7c23a21322227077820a8c2fb5e6c48a;hpb=f4472dd6dcdfbb5d4a2a50ddc615644c3b2c8145;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/commands/cmd_restart.cpp b/src/commands/cmd_restart.cpp index ffd0323b7..e83f3f381 100644 --- a/src/commands/cmd_restart.cpp +++ b/src/commands/cmd_restart.cpp @@ -13,28 +13,14 @@ #include "inspircd.h" -#ifndef __CMD_RESTART_H__ -#define __CMD_RESTART_H__ - -// include the common header files - -#include -#include -#include -#include "users.h" -#include "channels.h" - -/** Handle /RESTART. These command handlers can be reloaded by the core, - * and handle basic RFC1459 commands. Commands within modules work - * the same way, however, they can be fully unloaded, where these - * may not. +/** Handle /RESTART */ class CommandRestart : public Command { public: /** Constructor for restart. */ - CommandRestart (InspIRCd* Instance, Module* parent) : Command(Instance,parent,"RESTART","o",1,false,0) { syntax = ""; } + CommandRestart(Module* parent) : Command(parent,"RESTART",1,1) { flags_needed = 'o'; syntax = ""; } /** Handle command. * @param parameters The parameters to the comamnd * @param pcnt The number of parameters passed to teh command @@ -44,9 +30,6 @@ class CommandRestart : public Command CmdResult Handle(const std::vector& parameters, User *user); }; -#endif - - CmdResult CommandRestart::Handle (const std::vector& parameters, User *user) { ServerInstance->Logs->Log("COMMAND",DEFAULT,"Restart: %s",user->nick.c_str());