]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/command_parse.h
Include explicit parameter list in ProtocolInterface::SendMode
[user/henk/code/inspircd.git] / include / command_parse.h
index b0babac712e63e45f762955ffc9d5cf7effd58a3..6f6b96ca120f73f29a2266b8bc2b5adf64e0fe56 100644 (file)
@@ -2,7 +2,7 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2008 InspIRCd Development Team
+ *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
  * See: http://www.inspircd.org/wiki/index.php/Credits
  *
  * This program is free but copyrighted software; see
@@ -118,7 +118,7 @@ class CoreExport CommandParser : public classbase
         * function will return true, otherwise it will return false.
         */
        bool IsValidCommand(const std::string &commandname, unsigned int pcnt, User * user);
-       
+
        /** LoopCall is used to call a command classes handler repeatedly based on the contents of a comma seperated list.
         * There are two overriden versions of this method, one of which takes two potential lists and the other takes one.
         * We need a version which takes two potential lists for JOIN, because a JOIN may contain two lists of items at once,
@@ -192,11 +192,8 @@ class CoreExport CommandParser : public classbase
        bool CreateCommand(Command *f, void* so_handle = NULL);
 
        /** Insert the default RFC1459 commands into the command hash.
-        * Ignore any already loaded commands.
-        * @param user User to spool errors to, or if NULL, when an error occurs spool the errors to
-        * stdout then exit with EXIT_STATUS_HANDLER.
         */
-       void SetupCommandTable(User* user);
+       void SetupCommandTable();
 
        /** Translate nicknames in a string into UIDs, based on the TranslationType given.
         * @param to The translation type to use for the process.
@@ -205,17 +202,19 @@ class CoreExport CommandParser : public classbase
         * @return returns the number of substitutions made. Will always be 0 or 1 for TR_TEXT and 0..n for other types.
         */
        int TranslateUIDs(TranslateType to, const std::string &source, std::string &dest);
+
+       int TranslateUIDs(const std::deque<TranslateType> to, const std::deque<std::string> &source, std::string &dest);
 };
 
 /** Command handler class for the RELOAD command.
  * A command cant really reload itself, so this has to be in here.
  */
-class cmd_reload : public Command
+class CommandReload : public Command
 {
  public:
        /** Standard constructor
         */
-       cmd_reload (InspIRCd* Instance) : Command(Instance,"RELOAD","o",1) { syntax = "<core-command>"; }
+       CommandReload (InspIRCd* Instance) : Command(Instance,"RELOAD","o",1) { syntax = "<core-command>"; }
        /** Handle RELOAD
         */
        CmdResult Handle(const std::vector<std::string>& parameters, User *user);
@@ -249,4 +248,3 @@ const int duration_multi[] =
 };
 
 #endif
-