X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_redirect.cpp;h=3d10663aa4557d6dd23e5ac351ef733127a52563;hb=4e3d655dff6f8a5aed626475fbf19c2a7119c20b;hp=b3dc6e94d7a9c0814d56eaad4a3de7a5e3f45a29;hpb=565544fac966b14e046bb3042ab485f79bcf7c9e;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_redirect.cpp b/src/modules/m_redirect.cpp index b3dc6e94d..3d10663aa 100644 --- a/src/modules/m_redirect.cpp +++ b/src/modules/m_redirect.cpp @@ -30,7 +30,10 @@ class Redirect : public ParamMode { public: Redirect(Module* Creator) - : ParamMode(Creator, "redirect", 'L') { } + : ParamMode(Creator, "redirect", 'L') + { + syntax = ""; + } ModeAction OnSet(User* source, Channel* channel, std::string& parameter) CXX11_OVERRIDE { @@ -38,7 +41,7 @@ class Redirect : public ParamMode { 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; }