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))
self.sendMsg(ircmsgs.IrcMsg(command='CAP',
args=('REQ', caps)))
else:
self.sendMsg(ircmsgs.IrcMsg(command='CAP',
args=('END',)))
else:
log.warning('Bad CAP LS from server: %r', msg)
return