mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-12 03:59:03 -04:00
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
This commit is contained in:
parent
93b0661dda
commit
f72b7a7194
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user