diff libervia.tac @ 30:7684e3ceb12d

server_side: added getRoomJoined method
author Goffi <goffi@goffi.org>
date Sat, 14 May 2011 00:56:09 +0200
parents 28e203f13144
children d43d6e4b9dc8
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