aboutsummaryrefslogtreecommitdiff
path: root/IRCLineHandler.py
diff options
context:
space:
mode:
authorGravatar jesopo2017-11-01 14:16:01 +0000
committerGravatar jesopo2017-11-01 14:16:01 +0000
commite63438e2bbbec72b6b42f5910642b559f4140d20 (patch)
tree4e21706be2480d2bdfc205fa19330da3c7cba286 /IRCLineHandler.py
parentunsupported operand type(s) for %: 'bytes' and 'bytes' (diff)
signature
Add OP_NO_TLSv1 and fix a bug created while fixing another bug
Diffstat (limited to 'IRCLineHandler.py')
-rw-r--r--IRCLineHandler.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/IRCLineHandler.py b/IRCLineHandler.py
index b36e6ac4..10afcca9 100644
--- a/IRCLineHandler.py
+++ b/IRCLineHandler.py
@@ -200,10 +200,11 @@ def handle_QUIT(data):
@handler(description="The server is telling us about its capabilities!")
def handle_CAP(data):
+ capibility_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)
+ 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):