From bb3eaff14afc5d9c1a7d72d9a23cdf82c2e5657f Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 29 Aug 2018 12:44:09 +0100 Subject: Fix CAP logic that was broken by recent IRCLineHandler refactor --- IRCLineHandler.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/IRCLineHandler.py b/IRCLineHandler.py index 58b754f0..01fdc1e1 100644 --- a/IRCLineHandler.py +++ b/IRCLineHandler.py @@ -230,11 +230,9 @@ class LineHandler(object): # the server is telling us about its capabilities! def cap(self, event): - capability_list = [] - if len(event["args"]) > 2: - capability_list = event["args"][2].split() + capabilities = (event["arbitrary"] or "").split(" ") self.bot.events.on("received").on("cap").call( - subcommand=event["args"][1], capabilities=capability_list, + subcommand=event["args"][1], capabilities=capabilities, server=event["server"]) # the server is asking for authentication -- cgit v1.3.1-10-gc9f91