mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Prevent authentication hanging if the server supports no capability the bot asks.
This commit is contained in:
parent
17b1ae2dd5
commit
f86e25d9fb
@ -1091,8 +1091,10 @@ class Irc(IrcCommandDispatcher, log.Firewalled):
|
||||
# NOTE: Capabilities are requested in alphabetic order, because
|
||||
# sets are unordered, and their "order" is nondeterministic.
|
||||
# This is needed for the tests.
|
||||
if common_supported_capabilities:
|
||||
caps = ' '.join(sorted(common_supported_capabilities))
|
||||
self.sendMsg(ircmsgs.IrcMsg(command='CAP',
|
||||
args=('REQ', ' '.join(sorted(common_supported_capabilities)))))
|
||||
args=('REQ', caps)))
|
||||
else:
|
||||
log.warning('Bad CAP LS from server: %r', msg)
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user