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
|
# NOTE: Capabilities are requested in alphabetic order, because
|
||||||
# sets are unordered, and their "order" is nondeterministic.
|
# sets are unordered, and their "order" is nondeterministic.
|
||||||
# This is needed for the tests.
|
# This is needed for the tests.
|
||||||
self.sendMsg(ircmsgs.IrcMsg(command='CAP',
|
if common_supported_capabilities:
|
||||||
args=('REQ', ' '.join(sorted(common_supported_capabilities)))))
|
caps = ' '.join(sorted(common_supported_capabilities))
|
||||||
|
self.sendMsg(ircmsgs.IrcMsg(command='CAP',
|
||||||
|
args=('REQ', caps)))
|
||||||
else:
|
else:
|
||||||
log.warning('Bad CAP LS from server: %r', msg)
|
log.warning('Bad CAP LS from server: %r', msg)
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user