aboutsummaryrefslogtreecommitdiff
path: root/IRCLineHandler.py
diff options
context:
space:
mode:
Diffstat (limited to 'IRCLineHandler.py')
-rw-r--r--IRCLineHandler.py6
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