diff libervia.tac @ 125:f9d63624699f

radio collective integration, first draft
author Goffi <goffi@goffi.org>
date Thu, 05 Jan 2012 00:22:03 +0100
parents 6d1f4a3da29b
children e19a8de8b3de
line wrap: on
line diff
--- a/libervia.tac	Mon Dec 12 22:26:55 2011 +0100
+++ b/libervia.tac	Thu Jan 05 00:22:03 2012 +0100
@@ -240,7 +240,7 @@
         except:
             warning('Invalid room jid')
             return
-        self.sat_host.bridge.joinMUC(room_jid.host, room_jid.user, nick, profile)
+        self.sat_host.bridge.joinMUC(room_jid.userhost(), nick, {}, profile)
 
     def jsonrpc_getRoomsJoined(self):
         """Return list of room already joined by user"""
@@ -273,6 +273,11 @@
         profile = ISATSession(self.session).profile
         self.sat_host.bridge.tarotGamePlayCards(player_nick, referee, cards, profile)
 
+    def jsonrpc_launchRadioCollective(self, invited):
+        """Create a room, invite people, and start a radio collective"""
+        profile = ISATSession(self.session).profile
+        self.sat_host.bridge.radiocolLaunch(invited, profile)
+
     def jsonrpc_getCardCache(self, jid):
         """Get the avatar of a contact
         @param jid: jid of contact from who we want the avatar