Also send CAP END if no capability is requested.

This commit is contained in:
Valentin Lorentz 2015-09-05 13:14:05 +02:00
parent f86e25d9fb
commit aa13ac88ea

View File

@ -1095,6 +1095,9 @@ class Irc(IrcCommandDispatcher, log.Firewalled):
caps = ' '.join(sorted(common_supported_capabilities)) caps = ' '.join(sorted(common_supported_capabilities))
self.sendMsg(ircmsgs.IrcMsg(command='CAP', self.sendMsg(ircmsgs.IrcMsg(command='CAP',
args=('REQ', caps))) args=('REQ', caps)))
else:
self.sendMsg(ircmsgs.IrcMsg(command='CAP',
args=('END',)))
else: else:
log.warning('Bad CAP LS from server: %r', msg) log.warning('Bad CAP LS from server: %r', msg)
return return