Mercurial > libervia-backend
comparison plugins/plugin_misc_tarot.py @ 134:7201851d9aed
plugin tarot, plugin MUC: removed print which were causing error when printing unicode string
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 16 Jul 2010 20:15:14 +0800 |
parents | 94011f553cd0 |
children | 8c80d4dec7a8 |
comparison
equal
deleted
inserted
replaced
133:d998adb62d1a | 134:7201851d9aed |
---|---|
560 mess.firstChildElement().addChild(self.__ask_contrat()) | 560 mess.firstChildElement().addChild(self.__ask_contrat()) |
561 self.host.profiles[profile].xmlstream.send(mess) | 561 self.host.profiles[profile].xmlstream.send(mess) |
562 | 562 |
563 | 563 |
564 def card_game_cmd(self, mess_elt, profile): | 564 def card_game_cmd(self, mess_elt, profile): |
565 print "\n\nCARD GAME command received (profile=%s): %s" % (profile, mess_elt.toXml()) | |
566 from_jid = jid.JID(mess_elt['from']) | 565 from_jid = jid.JID(mess_elt['from']) |
567 room_jid = jid.JID(from_jid.userhost()) | 566 room_jid = jid.JID(from_jid.userhost()) |
568 game_elt = mess_elt.firstChildElement() | 567 game_elt = mess_elt.firstChildElement() |
569 game_data = self.games[room_jid.userhost()] | 568 game_data = self.games[room_jid.userhost()] |
570 players_data = game_data['players_data'] | 569 players_data = game_data['players_data'] |