mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-25 20:22:45 +01:00
relay: when restoring a user after KICK, join them to the *right* channel
This commit is contained in:
parent
5704fddfb4
commit
f93349ae1f
@ -396,7 +396,7 @@ def handle_kick(irc, source, command, args):
|
|||||||
# kick ops, admins can't kick owners, etc.
|
# kick ops, admins can't kick owners, etc.
|
||||||
modes = getPrefixModes(remoteirc, irc, remotechan, real_target)
|
modes = getPrefixModes(remoteirc, irc, remotechan, real_target)
|
||||||
# Join the kicked client back with its respective modes.
|
# Join the kicked client back with its respective modes.
|
||||||
irc.proto.sjoinServer(irc, irc.sid, remotechan, [(modes, target)])
|
irc.proto.sjoinServer(irc, irc.sid, channel, [(modes, target)])
|
||||||
if kicker in irc.users:
|
if kicker in irc.users:
|
||||||
utils.msg(irc, kicker, "This channel is claimed; your kick to "
|
utils.msg(irc, kicker, "This channel is claimed; your kick to "
|
||||||
"%s has been blocked because you are not "
|
"%s has been blocked because you are not "
|
||||||
|
Loading…
Reference in New Issue
Block a user