]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_redirect.cpp
Fix various cases of broken indentation.
[user/henk/code/inspircd.git] / src / modules / m_redirect.cpp
index b3dc6e94d7a9c0814d56eaad4a3de7a5e3f45a29..3d10663aa4557d6dd23e5ac351ef733127a52563 100644 (file)
@@ -30,7 +30,10 @@ class Redirect : public ParamMode<Redirect, LocalStringExt>
 {
  public:
        Redirect(Module* Creator)
-               : ParamMode<Redirect, LocalStringExt>(Creator, "redirect", 'L') { }
+               : ParamMode<Redirect, LocalStringExt>(Creator, "redirect", 'L')
+       {
+               syntax = "<target>";
+       }
 
        ModeAction OnSet(User* source, Channel* channel, std::string& parameter) CXX11_OVERRIDE
        {
@@ -38,7 +41,7 @@ class Redirect : public ParamMode<Redirect, LocalStringExt>
                {
                        if (!ServerInstance->IsChannel(parameter))
                        {
-                               source->WriteNumeric(ERR_NOSUCHCHANNEL, parameter, "Invalid channel name");
+                               source->WriteNumeric(Numerics::NoSuchChannel(parameter));
                                return MODEACTION_DENY;
                        }
                }
@@ -111,7 +114,7 @@ class ModuleRedirect : public Module
                                        }
                                        else
                                        {
-                                               user->WriteNumeric(470, cname, channel, "You may not join this channel, so you are automatically being transferred to the redirect channel.");
+                                               user->WriteNumeric(470, cname, channel, "You may not join this channel, so you are automatically being transferred to the redirected channel.");
                                                Channel::JoinUser(user, channel);
                                                return MOD_RES_DENY;
                                        }