Browse Source

add missing kickUser method

Natenom/support-murmur-13-1446181288462
Michael Ziegler 14 years ago
parent
commit
9ee5301386
  1. 4
      pyweb/mumble/MumbleCtlDbus.py

4
pyweb/mumble/MumbleCtlDbus.py

@ -306,6 +306,10 @@ class MumbleCtlDbus_118(MumbleCtlBase):
(session, ismute, isdeaf, suppressed, selfMute, selfDeaf, channel) = srv.getPlayerState(dbus.UInt32(sessionid)) (session, ismute, isdeaf, suppressed, selfMute, selfDeaf, channel) = srv.getPlayerState(dbus.UInt32(sessionid))
srv.setPlayerState((session, ismute, deaf, suppressed, selfMute, selfDeaf, channel)) srv.setPlayerState((session, ismute, deaf, suppressed, selfMute, selfDeaf, channel))
def kickUser(self, srvid, sessionid, reason):
srv = self._getDbusServerObject(srvid)
srv.kickPlayer(dbus.Int32(sessionid), reason )
def addChannel( self, srvid, name, parentid ): def addChannel( self, srvid, name, parentid ):
return self._getDbusServerObject(srvid).addChannel( name, parentid ) return self._getDbusServerObject(srvid).addChannel( name, parentid )

Loading…
Cancel
Save