Skip to content
Snippets Groups Projects
Commit cf55f9a4 authored by nickolas360's avatar nickolas360
Browse files

Fix syntax error in Python 2

parent 873e0277
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -333,7 +333,7 @@ class IRCBot(object):
 
def _on_005_isupport(self, server, target, *args):
for arg in args[:-1]:
name, value, *_ = arg.split("=", 1) + [None]
name, value = (arg.split("=", 1) + [None])[:2]
if name == "PREFIX":
modes, prefixes = value[1:].split(")", 1)
self._prefix_map = dict(zip(modes, prefixes))
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment