3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-30 14:49:28 +01:00

relay: don't break in removeChannel if irc.pseudoclient isn't set

This commit is contained in:
James Lu 2016-12-09 17:34:34 -08:00
parent e7e2f2c98e
commit 8855ef2a41

View File

@ -483,6 +483,7 @@ def removeChannel(irc, channel):
if channel not in map(str.lower, irc.serverdata.get('channels', [])): if channel not in map(str.lower, irc.serverdata.get('channels', [])):
world.services['pylink'].extra_channels[irc.name].discard(channel) world.services['pylink'].extra_channels[irc.name].discard(channel)
if irc.pseudoclient:
irc.proto.part(irc.pseudoclient.uid, channel, 'Channel delinked.') irc.proto.part(irc.pseudoclient.uid, channel, 'Channel delinked.')
relay = getRelay((irc.name, channel)) relay = getRelay((irc.name, channel))