Corrected indexoutofrange exception when handling certain serverqueries

This commit is contained in:
Adarnof 2015-11-08 05:14:55 +00:00
parent 239934cd2f
commit 3614c78971

View File

@ -139,7 +139,8 @@ class TS3Proto():
v = [v[0], '='.join(v[1:])] v = [v[0], '='.join(v[1:])]
key, value = v key, value = v
keys[key] = self._unescape_str(value) keys[key] = self._unescape_str(value)
elif v[0][0] and v[0][0] == '-': elif (not v == ['']):
if v[0][0] and v[0][0] == '-':
# Option # Option
opts.append(v[0][1:]) opts.append(v[0][1:])
else: else: