mirror of
https://github.com/jlu5/PyLink.git
synced 2025-05-03 13:17:32 +02:00
clientbot: fix KeyError when there are still queued outgoing messages to a channel we just left
This commit is contained in:
parent
62cef5c3f5
commit
509c2e52c4
@ -1058,7 +1058,10 @@ class ClientbotWrapperProtocol(IRCCommonProtocol):
|
|||||||
channel = args[1]
|
channel = args[1]
|
||||||
f = log.warning
|
f = log.warning
|
||||||
|
|
||||||
# Don't sent the warning multiple times to prevent flood if the target
|
if channel not in self.channels:
|
||||||
|
return
|
||||||
|
|
||||||
|
# Don't send the warning multiple times to prevent flood if the target
|
||||||
# is a log chan.
|
# is a log chan.
|
||||||
if hasattr(self.channels[channel], '_clientbot_cannot_send_warned'):
|
if hasattr(self.channels[channel], '_clientbot_cannot_send_warned'):
|
||||||
f = log.debug
|
f = log.debug
|
||||||
|
Loading…
x
Reference in New Issue
Block a user