Fix CAP logic that was broken by recent IRCLineHandler refactor

This commit is contained in:
jesopo 2018-08-29 12:44:09 +01:00
parent 0b95dfb98b
commit bb3eaff14a

View file

@ -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