]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/commands/cmd_commands.cpp
...because every now and again, i have to do a massive commit.
[user/henk/code/inspircd.git] / src / commands / cmd_commands.cpp
index 5fa041b8f68b54f3139085c4f5d052468e6da7de..5a047e4a772977119f786ff99fcbc24955ab13d5 100644 (file)
@@ -2,7 +2,7 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
+ *  InspIRCd: (C) 2002-2010 InspIRCd Development Team
  * See: http://wiki.inspircd.org/Credits
  *
  * This program is free but copyrighted software; see
@@ -31,7 +31,7 @@ class CommandCommands : public Command
  public:
        /** Constructor for commands.
         */
-       CommandCommands (InspIRCd* Instance, Module* parent) : Command(Instance,parent,"COMMANDS",0,0) { }
+       CommandCommands ( Module* parent) : Command(parent,"COMMANDS",0,0) { }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
@@ -53,7 +53,7 @@ CmdResult CommandCommands::Handle (const std::vector<std::string>&, User *user)
                Module* src = i->second->creator;
                user->WriteNumeric(RPL_COMMANDS, "%s :%s %s %d %d",
                                user->nick.c_str(),
-                               i->second->command.c_str(),
+                               i->second->name.c_str(),
                                src ? src->ModuleSourceFile.c_str() : "<core>",
                                i->second->min_params,
                                i->second->Penalty);