]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_jumpserver.cpp
Add 906, sasl aborted
[user/henk/code/inspircd.git] / src / modules / m_jumpserver.cpp
index 86df623322eb2974de3d3c5268a00c352c2470ea..f744a3eead3ff45b4e20c0fd6b1a6bd4e34a75b8 100644 (file)
@@ -27,7 +27,7 @@ class CommandJumpserver : public Command
        std::string reason;
        int port;
 
-       CommandJumpserver (InspIRCd* Instance) : Command(Instance, "JUMPSERVER", 'o', 0)
+       CommandJumpserver (InspIRCd* Instance) : Command(Instance, "JUMPSERVER", "o", 0)
        {
                this->source = "m_jumpserver.so";
                syntax = "[<server> <port> <+/-a> :<reason>]";
@@ -37,7 +37,7 @@ class CommandJumpserver : public Command
                redirect_all_immediately = redirect_new_users = false;
        }
 
-       CmdResult Handle (const char** parameters, int pcnt, User *user)
+       CmdResult Handle (const char* const* parameters, int pcnt, User *user)
        {
                int n_done = 0;
                reason = (pcnt < 4) ? "Please use this server/port instead" : parameters[3];
@@ -84,7 +84,7 @@ class CommandJumpserver : public Command
                if (redirect_all_immediately)
                {
                        /* Redirect everyone but the oper sending the command */
-                       for (std::vector<User*>::const_iterator i = ServerInstance->local_users.begin(); i != ServerInstance->local_users.end(); i++)
+                       for (std::vector<User*>::const_iterator i = ServerInstance->Users->local_users.begin(); i != ServerInstance->Users->local_users.end(); i++)
                        {
                                User* t = *i;
                                if (!IS_OPER(t))