diff src/plugins/plugin_misc_tarot.py @ 362:208107419b17

Quiz game: buzzer, timer, answer management
author Goffi <goffi@goffi.org>
date Sun, 12 Jun 2011 22:34:15 +0200
parents 141eeb7cd9e6
children f964dcec1611
line wrap: on
line diff
--- a/src/plugins/plugin_misc_tarot.py	Sun Jun 12 16:28:33 2011 +0200
+++ b/src/plugins/plugin_misc_tarot.py	Sun Jun 12 22:34:15 2011 +0200
@@ -736,7 +736,7 @@
                                 players_data[player]['played'] = None
                             if len(game_data['hand'][current_player]) == 0:
                                 #no card lef: the game is finished
-                                to_jid = jid.JID(room_jid.userhost()) #FIXME: gof:
+                                to_jid = room_jid
                                 mess = self.createGameElt(to_jid)
                                 chien_elt = mess.firstChildElement().addChild(self.__give_scores(*self.__calculate_scores(game_data)))
                                 self.host.profiles[profile].xmlstream.send(mess)
@@ -750,7 +750,7 @@
                             next_player = self.__next_player(game_data)
 
                         #finally, we tell to the next player to play
-                        to_jid = jid.JID(room_jid.userhost()+"/"+next_player) #FIXME: gof:
+                        to_jid = jid.JID(room_jid.userhost()+"/"+next_player)
                         mess = self.createGameElt(to_jid)
                         yourturn_elt = mess.firstChildElement().addElement('your_turn')
                         self.host.profiles[profile].xmlstream.send(mess)