]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_jumpserver.cpp
Fix double dot in half-cloaked resolved hosts
[user/henk/code/inspircd.git] / src / modules / m_jumpserver.cpp
index 6e8f00b44725b9bcf93ea9c8ad04ddf09c44b931..0e8f13c4d4f0efe41c4ae0cd01db91bb8deb29bd 100644 (file)
@@ -27,9 +27,9 @@ class CommandJumpserver : public Command
        std::string reason;
        int port;
 
-       CommandJumpserver (InspIRCd* Instance, Module* Creator) : Command(Instance, Creator, "JUMPSERVER", "o", 0, 4)
+       CommandJumpserver(Module* Creator) : Command(Creator, "JUMPSERVER", 0, 4)
        {
-               syntax = "[<server> <port> <+/-an> <reason>]";
+               flags_needed = 'o'; syntax = "[<server> <port> <+/-an> <reason>]";
                redirect_to.clear();
                reason.clear();
                port = 0;
@@ -55,7 +55,7 @@ class CommandJumpserver : public Command
 
                        port = 0;
                        redirect_to.clear();
-                       return CMD_LOCALONLY;
+                       return CMD_SUCCESS;
                }
 
                port = 0;
@@ -126,7 +126,7 @@ class CommandJumpserver : public Command
                                        reason.c_str());
                }
 
-               return CMD_LOCALONLY;
+               return CMD_SUCCESS;
        }
 };
 
@@ -135,8 +135,7 @@ class ModuleJumpServer : public Module
 {
        CommandJumpserver js;
  public:
-       ModuleJumpServer(InspIRCd* Me)
-               : Module(Me), js(Me, this)
+       ModuleJumpServer() : js(this)
        {
                ServerInstance->AddCommand(&js);
                Implementation eventlist[] = { I_OnUserRegister };
@@ -162,7 +161,7 @@ class ModuleJumpServer : public Module
 
        virtual Version GetVersion()
        {
-               return Version("$Id$", VF_VENDOR, API_VERSION);
+               return Version("Provides support for the RPL_REDIR numeric", VF_VENDOR, API_VERSION);
        }
 
 };