Merge pull request #1125 from GLolol/fix-1122

irclib: fix error when SASL is supported but not enabled for a network
This commit is contained in:
Valentin Lorentz 2015-06-13 10:12:11 +02:00
commit 0c7ec2663f

View File

@ -1040,7 +1040,7 @@ class Irc(IrcCommandDispatcher):
self.network, caps) self.network, caps)
self.state.capabilities_ack.update(caps) self.state.capabilities_ack.update(caps)
if 'sasl' in caps: if 'sasl' in caps and self.sasl:
self.sendMsg(ircmsgs.IrcMsg(command='AUTHENTICATE', args=(self.sasl.upper(),))) self.sendMsg(ircmsgs.IrcMsg(command='AUTHENTICATE', args=(self.sasl.upper(),)))
else: else:
self.sendMsg(ircmsgs.IrcMsg(command='CAP', args=('END',))) self.sendMsg(ircmsgs.IrcMsg(command='CAP', args=('END',)))