Server Factory: Handle URL arguments without value

This commit is contained in:
nemunaire 2015-10-17 17:10:21 +02:00
parent 2f1f573af2
commit c0ce0ca263

View File

@ -46,7 +46,10 @@ def factory(uri):
queries = o.query.split("&")
for q in queries:
key, val = tuple(q.split("=", 1))
if "=" in q:
key, val = tuple(q.split("=", 1))
else:
key, val = q, ""
if key == "msg":
args["on_connect"] = [ "PRIVMSG %s :%s" % (target, unquote(val)) ]
elif key == "key":