3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 01:09:22 +01:00

relay: don't fail if oldchan is not given in MODE

This commit is contained in:
James Lu 2015-09-14 17:36:41 -07:00
parent 81628f9a6d
commit 78080bde6b

View File

@ -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.