Mercurial > libervia-backend
diff src/plugins/plugin_misc_quiz.py @ 712:f610864eb7a5
plugins (MUC, tools, games): generalize the generation of a unique room name when joining a MUC and no room is specified:
- method to get the MUC service moved to plugin_xep_0045
- joinMUC returns the muc name (given by user or generated)
- getUniqueName can receive a specified service in argument
author | souliane <souliane@mailoo.org> |
---|---|
date | Sun, 17 Nov 2013 16:59:12 +0100 |
parents | 75e4f5e2cc65 |
children | 358018c5c398 |
line wrap: on
line diff
--- a/src/plugins/plugin_misc_quiz.py Sun Nov 17 16:30:46 2013 +0100 +++ b/src/plugins/plugin_misc_quiz.py Sun Nov 17 16:59:12 2013 +0100 @@ -61,7 +61,7 @@ info(_("Plugin Quiz initialization")) RoomGame.__init__(self, host, PLUGIN_INFO, (NS_QG, QG_TAG), player_init_data={'score': 0}, options={'stage': None}) - host.bridge.addMethod("quizGameLaunch", ".plugin", in_sign='ass', out_sign='', method=self.prepareRoom) # args: players, profile + host.bridge.addMethod("quizGameLaunch", ".plugin", in_sign='asss', out_sign='', method=self.prepareRoom) # args: players, room_jid, profile host.bridge.addMethod("quizGameCreate", ".plugin", in_sign='sass', out_sign='', method=self.createGame) # args: room_jid, players, profile host.bridge.addMethod("quizGameReady", ".plugin", in_sign='sss', out_sign='', method=self.playerReady) # args: player, referee, profile host.bridge.addMethod("quizGameAnswer", ".plugin", in_sign='ssss', out_sign='', method=self.playerAnswer)