3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-27 21:19:31 +01:00

clientbot: send CAP END if SASL is disabled

This commit is contained in:
James Lu 2016-12-17 15:48:01 -08:00
parent 9cc817d544
commit 651752d23d

View File

@ -494,7 +494,8 @@ class ClientbotWrapperProtocol(Protocol):
# Only send CAP END immediately if SASL is disabled. Otherwise, wait for the 90x responses
# to do so.
self.saslAuth()
if not self.saslAuth():
self.irc.send('CAP END')
elif subcmd == 'NAK':
self.irc.send('CAP END')