mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-13 14:30:17 +02:00
Merge pull request #84 from Adarnof/ts3hotfix
Corrects string index out of range exception when handling certain TS3 commands
This commit is contained in:
commit
05884095a9
@ -139,11 +139,12 @@ 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 == ['']):
|
||||||
# Option
|
if v[0][0] and v[0][0] == '-':
|
||||||
opts.append(v[0][1:])
|
# Option
|
||||||
else:
|
opts.append(v[0][1:])
|
||||||
command = v[0]
|
else:
|
||||||
|
command = v[0]
|
||||||
|
|
||||||
d = {'keys': keys, 'opts': opts}
|
d = {'keys': keys, 'opts': opts}
|
||||||
if command:
|
if command:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user