Requesting multiple capabilities in one message will result in a NAK for
all of them if at least one is not supported by the server.
This commit is contained in:
nyuszika7h 2015-01-19 12:14:38 +01:00
parent ccea98b428
commit 5653e0c727

View File

@ -962,8 +962,8 @@ class Irc(IrcCommandDispatcher):
elif self.sasl_username and self.sasl_password:
self.sasl = 'plain'
self.queueMsg(ircmsgs.IrcMsg(command='CAP', args=('REQ',
'account-notify extended-join multi-prefix')))
for cap in ('account-notify', 'extended-join', 'multi-prefix'):
self.queueMsg(ircmsgs.IrcMsg(command='CAP', args=('REQ', cap)))
if self.sasl:
self.queueMsg(ircmsgs.IrcMsg(command='CAP', args=('REQ', 'sasl')))