mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-27 21:19:31 +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():
|
||||
continue
|
||||
if utils.isChannel(target):
|
||||
oldchan = args['oldchan']
|
||||
oldchan = args.get('oldchan')
|
||||
if checkClaim(irc, target, numeric, chanobj=oldchan):
|
||||
relayModes(irc, remoteirc, numeric, target, modes)
|
||||
else: # Mode change blocked by CLAIM.
|
||||
|
Loading…
Reference in New Issue
Block a user