Added ts3 lib fix

This commit is contained in:
Raynaldo Rivera 2014-11-24 18:03:44 -07:00
parent 81768983d8
commit eb723254f2
2 changed files with 2 additions and 1 deletions

View File

@ -39,6 +39,7 @@ class Teamspeak3Manager:
def _group_id_by_name(groupname):
server = Teamspeak3Manager.__get_created_server()
group_cache = server.send_command('servergrouplist')
for group in group_cache:
if group['keys']['name'] == groupname:
return group['keys']['sgid']

View File

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