]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/mode.h
There is no need for char* here any more
[user/henk/code/inspircd.git] / include / mode.h
index dcd8cc0040d3cd051d39a92683ac90c328aeb6b9..d00ec30211ab11bb1026a0a639bf4647350ff260 100644 (file)
@@ -424,6 +424,10 @@ class CoreExport ModeParser : public classbase
         */
        std::string LastParse;
 
+       unsigned int sent[256];
+
+       unsigned int seq;
+
  public:
 
        /** The constructor initializes all the RFC basic modes by using ModeParserAddMode().
@@ -492,13 +496,12 @@ class CoreExport ModeParser : public classbase
        /** Process a set of mode changes from a server or user.
         * @param parameters The parameters of the mode change, in the format
         * they would be from a MODE command.
-        * @param pcnt The number of items in the parameters array
         * @param user The user setting or removing the modes. When the modes are set
         * by a server, an 'uninitialized' User is used, where *user::nick == NULL
         * and *user->server == NULL.
         * @param servermode True if a server is setting the mode.
         */
-       void Process(const char* const* parameters, int pcnt, User *user, bool servermode);
+       void Process(const std::vector<std::string>& parameters, User *user, bool servermode);
 
        /** Find the mode handler for a given mode and type.
         * @param modeletter mode letter to search for