diff options
| author | 2018-08-29 12:44:09 +0100 | |
|---|---|---|
| committer | 2018-08-29 12:44:09 +0100 | |
| commit | bb3eaff14afc5d9c1a7d72d9a23cdf82c2e5657f (patch) | |
| tree | cc5e8880e9bbd6ba8aaf085e449f8e187639ce1e | |
| parent | Do a default event for received data if there's no hooks for it (diff) | |
| signature | ||
Fix CAP logic that was broken by recent IRCLineHandler refactor
| -rw-r--r-- | IRCLineHandler.py | 6 |
1 files 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 |
