comparison src/server/server.py @ 692:7a9c7b9f6a28

browser_side: use host.default_muc instead of C.DEFAULT_MUC
author souliane <souliane@mailoo.org>
date Thu, 09 Apr 2015 11:37:25 +0200
parents a6adefddcb0a
children 82123705474b
comparison
equal deleted inserted replaced
691:16079280a39e 692:7a9c7b9f6a28
428 428
429 def jsonrpc_getRoomsSubjects(self): 429 def jsonrpc_getRoomsSubjects(self):
430 """Return list of room subjects""" 430 """Return list of room subjects"""
431 profile = ISATSession(self.session).profile 431 profile = ISATSession(self.session).profile
432 return self.sat_host.bridge.getRoomsSubjects(profile) 432 return self.sat_host.bridge.getRoomsSubjects(profile)
433
434 def jsonrpc_getDefaultMUC(self):
435 """@return: the default MUC"""
436 d = self.asyncBridgeCall("getDefaultMUC")
437 return d
433 438
434 def jsonrpc_launchTarotGame(self, other_players, room_jid=""): 439 def jsonrpc_launchTarotGame(self, other_players, room_jid=""):
435 """Create a room, invite the other players and start a Tarot game. 440 """Create a room, invite the other players and start a Tarot game.
436 441
437 @param other_players (list[unicode]): JIDs of the players to play with 442 @param other_players (list[unicode]): JIDs of the players to play with