diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-12-13 15:41:19 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-12-13 15:41:19 +0000 |
commit | f72b7a7194b7225a4df5de4d8b5848f5b733b789 (patch) | |
tree | 351b85e966d998dc1147c4ee9fb1077b5163d4ed | |
parent | 93b0661ddaebc82df76e0268ebe0ab0c17f7cbc7 (diff) |
Use freenode's 470 numeric for redirection.
Note that if redirection channel is +L, then a 470 with target channel '*' will be omitted to indicate you would be redirected, but cannot.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10882 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/modules/m_redirect.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_redirect.cpp b/src/modules/m_redirect.cpp index 27273214a..ab992a05a 100644 --- a/src/modules/m_redirect.cpp +++ b/src/modules/m_redirect.cpp @@ -120,11 +120,11 @@ class ModuleRedirect : public Module destchan = ServerInstance->FindChan(channel); if (destchan && destchan->IsModeSet('L')) { - user->WriteNumeric(470, "%s :You may not join %s. A redirect is set, but you may not be redirected as it is a circular loop.", user->nick.c_str(), cname); + user->WriteNumeric(470, "%s %s * :You may not join this channel. A redirect is set, but you may not be redirected as it is a circular loop.", user->nick.c_str(), cname); return 1; } - user->WriteNumeric(470, "%s :You may not join %s, so you are automatically being transferred to the redirect channel %s", user->nick.c_str(), cname, channel.c_str()); + user->WriteNumeric(470, "%s %s %s:You may not join this channel, so you are automatically being transferred to the redirect channel.", user->nick.c_str(), cname, channel.c_str()); Channel::JoinUser(ServerInstance, user, channel.c_str(), false, "", false, ServerInstance->Time()); return 1; } |