mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +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.
|
||||
self.sendMsg(ircmsgs.IrcMsg(command='CAP',
|
||||
args=('REQ', ' '.join(sorted(common_supported_capabilities)))))
|
||||
if common_supported_capabilities:
|
||||
caps = ' '.join(sorted(common_supported_capabilities))
|
||||
self.sendMsg(ircmsgs.IrcMsg(command='CAP',
|
||||
args=('REQ', caps)))
|
||||
else:
|
||||
log.warning('Bad CAP LS from server: %r', msg)
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user