mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-26 20:52:45 +01:00
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:
commit
0c7ec2663f
@ -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',)))
|
||||||
|
Loading…
Reference in New Issue
Block a user