]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/coremods/core_user/cmd_nick.cpp
Change all occurrences of plain sort() to std::sort()
[user/henk/code/inspircd.git] / src / coremods / core_user / cmd_nick.cpp
index 486fce7ebf0a8cbd5138c2a4cff6cc19a0959222..166941c6dcd9069a979b7df81538c22c78833de5 100644 (file)
 
 
 #include "inspircd.h"
+#include "core_user.h"
 
-/** Handle /NICK.
- */
-class CommandNick : public Command
+CommandNick::CommandNick(Module* parent)
+       : Command(parent, "NICK", 1, 1)
 {
- public:
-       /** Constructor for nick.
-        */
-       CommandNick ( Module* parent) : Command(parent,"NICK", 1, 1) { works_before_reg = true; syntax = "<newnick>"; Penalty = 0; }
-       /** 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);
-};
+       works_before_reg = true;
+       syntax = "<newnick>";
+       Penalty = 0;
+}
 
 /** Handle nick changes from users.
  * NOTE: If you are used to ircds based on ircd2.8, and are looking
@@ -89,6 +82,3 @@ CmdResult CommandNick::Handle (const std::vector<std::string>& parameters, User
 
        return CMD_SUCCESS;
 }
-
-
-COMMAND_INIT(CommandNick)