From 497a7e297b99c642fa78b8d3ab015a9d0a254fdc Mon Sep 17 00:00:00 2001 From: w00t Date: Sun, 26 Aug 2007 21:18:34 +0000 Subject: Add 'you are banned' numeric to banredirect output, from avenger's patch git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7842 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_banredirect.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/modules') diff --git a/src/modules/m_banredirect.cpp b/src/modules/m_banredirect.cpp index 5e730b47f..3697e995f 100644 --- a/src/modules/m_banredirect.cpp +++ b/src/modules/m_banredirect.cpp @@ -309,7 +309,8 @@ class ModuleBanRedirect : public Module } else { - user->WriteServ("470 %s :You are banned from %s. You are being automatically redirected to %s", user->nick, chan->name, redir->targetchan.c_str()); + user->WriteServ("474 %s %s :Cannot join channel (You are banned)", user->nick, chan->name); + user->WriteServ("470 %s :You are being automatically redirected to %s", user->nick, redir->targetchan.c_str()); nofollow = true; chanrec::JoinUser(ServerInstance, user, redir->targetchan.c_str(), false, "", ServerInstance->Time(true)); nofollow = false; -- cgit v1.2.3