mirror of
https://github.com/jlu5/PyLink.git
synced 2025-02-20 07:20:59 +01:00
relay: don't fail if oldchan is not given in MODE
This commit is contained in:
parent
81628f9a6d
commit
78080bde6b
@ -805,7 +805,7 @@ def handle_mode(irc, numeric, command, args):
|
|||||||
if irc.name == name or not remoteirc.connected.is_set():
|
if irc.name == name or not remoteirc.connected.is_set():
|
||||||
continue
|
continue
|
||||||
if utils.isChannel(target):
|
if utils.isChannel(target):
|
||||||
oldchan = args['oldchan']
|
oldchan = args.get('oldchan')
|
||||||
if checkClaim(irc, target, numeric, chanobj=oldchan):
|
if checkClaim(irc, target, numeric, chanobj=oldchan):
|
||||||
relayModes(irc, remoteirc, numeric, target, modes)
|
relayModes(irc, remoteirc, numeric, target, modes)
|
||||||
else: # Mode change blocked by CLAIM.
|
else: # Mode change blocked by CLAIM.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user