diff options
| author | 2017-10-27 13:15:33 +0100 | |
|---|---|---|
| committer | 2017-10-27 13:15:33 +0100 | |
| commit | 0df7abb03e2a75744a575bc9a7b349fa98d6f485 (patch) | |
| tree | f6a4a5f952f030108371588347a45f0cea684eed /IRCLineHandler.py | |
| parent | Amber Rudd (diff) | |
| signature | ||
Handle empty CAP, additional IRCLog feature, better tls, better channel_save logic, add sed-sender-only setting
Signed-off-by: jesopo <github@lolnerd.net>
Diffstat (limited to 'IRCLineHandler.py')
| -rw-r--r-- | IRCLineHandler.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/IRCLineHandler.py b/IRCLineHandler.py index 1bcc8f57..b36e6ac4 100644 --- a/IRCLineHandler.py +++ b/IRCLineHandler.py @@ -200,9 +200,10 @@ def handle_QUIT(data): @handler(description="The server is telling us about its capabilities!") def handle_CAP(data): - capability_list = data.args[2].split() - bot.events.on("received").on("cap").call(data=data, - subcommand=data.args[1], capabilities=capability_list) + if len(data.args) > 2: + capability_list = data.args[2].split() + bot.events.on("received").on("cap").call(data=data, + subcommand=data.args[1], capabilities=capability_list) @handler(description="The server is asking for authentication") def handle_AUTHENTICATE(data): |
