Browse Source

properly handle the *dict* getRegisteredUsers is returning. fixes #119

Natenom/support-murmur-13-1446181288462
Michael Ziegler 14 years ago
parent
commit
7a9633dc77
  1. 6
      pyweb/mumble/MumbleCtlDbus.py

6
pyweb/mumble/MumbleCtlDbus.py

@ -282,12 +282,14 @@ class MumbleCtlDbus_118(MumbleCtlBase):
if not player:
return -2
plid = player.values()[0].userid
ok = MumbleCtlDbus_118.convertDbusTypeToNative(
self._getDbusServerObject(srvid).verifyPassword( dbus.Int32( player[0].userid ), password )
self._getDbusServerObject(srvid).verifyPassword( dbus.Int32( plid ), password )
)
if ok:
return player[0].userid
return plid
else:
return -1

Loading…
Cancel
Save