mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-27 21:19:31 +01:00
relay: don't break in removeChannel if irc.pseudoclient isn't set
This commit is contained in:
parent
e7e2f2c98e
commit
8855ef2a41
@ -483,7 +483,8 @@ 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)
|
||||||
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))
|
relay = getRelay((irc.name, channel))
|
||||||
if relay:
|
if relay:
|
||||||
|
Loading…
Reference in New Issue
Block a user