summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpsychon <psychon@e03df62e-2008-0410-955e-edbf42e46eb7>2008-12-13 15:55:46 +0000
committerpsychon <psychon@e03df62e-2008-0410-955e-edbf42e46eb7>2008-12-13 15:55:46 +0000
commit683055a13b0cb5c41556eaafef99af27edf1e868 (patch)
tree5607db73f80fe1883d4978ba1eb51edd88202049
parente0e0e06d0a454caf65b31b126d87094bc51ca533 (diff)
Also use freenode's 470 numeric in m_banredirect.
(P.S.: This also fixes a bug from the last commit) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10884 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_banredirect.cpp2
-rw-r--r--src/modules/m_redirect.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_banredirect.cpp b/src/modules/m_banredirect.cpp
index eaeb90ea8..c15452366 100644
--- a/src/modules/m_banredirect.cpp
+++ b/src/modules/m_banredirect.cpp
@@ -312,7 +312,7 @@ class ModuleBanRedirect : public Module
else
{
user->WriteNumeric(474, "%s %s :Cannot join channel (You are banned)", user->nick.c_str(), chan->name.c_str());
- user->WriteNumeric(470, "%s :You are being automatically redirected to %s", user->nick.c_str(), redir->targetchan.c_str());
+ user->WriteNumeric(470, "%s %s %s :You are banned from this channel, so you are automatically transfered to the redirected channel.", user->nick.c_str(), chan->name.c_str(), redir->targetchan.c_str());
nofollow = true;
Channel::JoinUser(ServerInstance, user, redir->targetchan.c_str(), false, "", false, ServerInstance->Time());
nofollow = false;
diff --git a/src/modules/m_redirect.cpp b/src/modules/m_redirect.cpp
index ab992a05a..b99084db0 100644
--- a/src/modules/m_redirect.cpp
+++ b/src/modules/m_redirect.cpp
@@ -124,7 +124,7 @@ class ModuleRedirect : public Module
return 1;
}
- 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());
+ 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;
}