mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-24 19:52:53 +01:00
relay: also quit users who aren't on any shared channels after KICK
This commit is contained in:
parent
5c3466bf82
commit
71a3464e8a
@ -420,6 +420,12 @@ def handle_kick(irc, source, command, args):
|
||||
text = "(<unknown kicker>@%s) %s" % (irc.name, text)
|
||||
remoteirc.proto.kickServer(remoteirc, remoteirc.sid,
|
||||
remotechan, real_target, text)
|
||||
|
||||
if target != irc.pseudoclient.uid and not irc.users[target].channels:
|
||||
irc.proto.quitClient(irc, target, 'Left all shared channels.')
|
||||
remoteuser = getLocalUser(irc, target)
|
||||
del relayusers[remoteuser][irc.name]
|
||||
|
||||
utils.add_hook(handle_kick, 'KICK')
|
||||
|
||||
def handle_chgclient(irc, source, command, args):
|
||||
|
Loading…
Reference in New Issue
Block a user