]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/commands/cmd_commands.cpp
m_spanningtree Rewrite /map
[user/henk/code/inspircd.git] / src / commands / cmd_commands.cpp
index 99acdfe963cb13f756d65eed39bcc7b2f4540646..c456160612a57a5f70bc9ec73bd025a8ec91b91b 100644 (file)
@@ -30,7 +30,11 @@ class CommandCommands : public Command
  public:
        /** Constructor for commands.
         */
-       CommandCommands ( Module* parent) : Command(parent,"COMMANDS",0,0) { }
+       CommandCommands(Module* parent) : Command(parent,"COMMANDS",0,0)
+       {
+               Penalty = 3;
+       }
+
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
@@ -60,7 +64,7 @@ CmdResult CommandCommands::Handle (const std::vector<std::string>&, User *user)
        sort(list.begin(), list.end());
        for(unsigned int i=0; i < list.size(); i++)
                user->Write(list[i]);
-       user->WriteNumeric(RPL_COMMANDSEND, "%s :End of COMMANDS list",user->nick.c_str());
+       user->WriteNumeric(RPL_COMMANDSEND, ":End of COMMANDS list");
        return CMD_SUCCESS;
 }