3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-29 06:02:38 +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,7 +483,8 @@ def removeChannel(irc, channel):
if channel not in map(str.lower, irc.serverdata.get('channels', [])):
world.services['pylink'].extra_channels[irc.name].discard(channel)
irc.proto.part(irc.pseudoclient.uid, channel, 'Channel delinked.')
if irc.pseudoclient:
irc.proto.part(irc.pseudoclient.uid, channel, 'Channel delinked.')
relay = getRelay((irc.name, channel))
if relay: