mirror of
https://github.com/jlu5/PyLink.git
synced 2025-01-11 20:52:42 +01: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]
|
||||
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.
|
||||
if hasattr(self.channels[channel], '_clientbot_cannot_send_warned'):
|
||||
f = log.debug
|
||||
|
Loading…
Reference in New Issue
Block a user