Merge pull request #84 from Adarnof/ts3hotfix

Corrects string index out of range exception when handling certain TS3 commands
This commit is contained in:
Brett Costabile 2015-11-15 14:48:03 -05:00
commit 05884095a9

View File

@ -139,7 +139,8 @@ class TS3Proto():
v = [v[0], '='.join(v[1:])]
key, value = v
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
opts.append(v[0][1:])
else: