#include "inspircd.h"
+#include "core_info.h"
-/** Handle /VERSION.
- */
-class CommandVersion : public Command
+CommandVersion::CommandVersion(Module* parent)
+ : Command(parent, "VERSION", 0, 0)
{
- public:
- /** Constructor for version.
- */
- CommandVersion ( Module* parent) : Command(parent,"VERSION",0,0) { syntax = "[<servername>]"; }
- /** Handle command.
- * @param parameters The parameters to the 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);
-};
+ syntax = "[<servername>]";
+}
CmdResult CommandVersion::Handle (const std::vector<std::string>&, User *user)
{
}
return CMD_SUCCESS;
}
-
-COMMAND_INIT(CommandVersion)