Fix CAP logic that was broken by recent IRCLineHandler refactor
This commit is contained in:
parent
0b95dfb98b
commit
bb3eaff14a
1 changed files with 2 additions and 4 deletions
|
@ -230,11 +230,9 @@ class LineHandler(object):
|
||||||
|
|
||||||
# the server is telling us about its capabilities!
|
# the server is telling us about its capabilities!
|
||||||
def cap(self, event):
|
def cap(self, event):
|
||||||
capability_list = []
|
capabilities = (event["arbitrary"] or "").split(" ")
|
||||||
if len(event["args"]) > 2:
|
|
||||||
capability_list = event["args"][2].split()
|
|
||||||
self.bot.events.on("received").on("cap").call(
|
self.bot.events.on("received").on("cap").call(
|
||||||
subcommand=event["args"][1], capabilities=capability_list,
|
subcommand=event["args"][1], capabilities=capabilities,
|
||||||
server=event["server"])
|
server=event["server"])
|
||||||
|
|
||||||
# the server is asking for authentication
|
# the server is asking for authentication
|
||||||
|
|
Loading…
Reference in a new issue