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