diff src/plugins/plugin_misc_room_game.py @ 857:3c270d691e56

test: fix the tests for plugin room game
author souliane <souliane@mailoo.org>
date Thu, 20 Feb 2014 17:51:51 +0100
parents c5a8f602662b
children 386ab96af575
line wrap: on
line diff
--- a/src/plugins/plugin_misc_room_game.py	Thu Feb 20 16:37:05 2014 +0100
+++ b/src/plugins/plugin_misc_room_game.py	Thu Feb 20 17:51:51 2014 +0100
@@ -304,7 +304,7 @@
         nicks = []
         for player_jid in [player.userhostJID() for player in players_jids]:
             # TODO: find a way to make it secure
-            other_nick = self.host.plugins["XEP-0045"].getRoomNickOfUser(room, player_jid, secure=False)
+            other_nick = self.host.plugins["XEP-0045"].getRoomNickOfUser(room, player_jid, secure=self.testing)
             if other_nick is None:
                 self.host.plugins["XEP-0249"].invite(player_jid, room_jid, {"game": self.name}, profile)
             else: