Mercurial > libervia-web
changeset 30:7684e3ceb12d
server_side: added getRoomJoined method
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 14 May 2011 00:56:09 +0200 |
parents | 8152f019d334 |
children | cb07078f8d6f |
files | libervia.tac |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libervia.tac Sat May 14 00:51:11 2011 +0200 +++ b/libervia.tac Sat May 14 00:56:09 2011 +0200 @@ -111,6 +111,11 @@ return {} return self.sat_host.bridge.getHistory(from_jid, to_jid, size) + def jsonrpc_getRoomJoined(self): + """Return list of room already joined by user""" + profile = self.session.sat_profile + return self.sat_host.bridge.getRoomJoined(profile) + def jsonrpc_launchTarotGame(self, other_players): """Create a room, invite the other players and start a Tarot game""" profile = self.session.sat_profile