diff src/plugins/plugin_xep_0045.py @ 791:23b0c949b86c

plugins room games, XEP-0045: small fixes, improved docstrings
author souliane <souliane@mailoo.org>
date Fri, 10 Jan 2014 18:07:36 +0100
parents bfabeedbf32e
children 02ee9ef95277
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0045.py	Thu Jan 09 10:28:25 2014 +0100
+++ b/src/plugins/plugin_xep_0045.py	Fri Jan 10 18:07:36 2014 +0100
@@ -139,7 +139,7 @@
         @return: the nick or None if the user didn't join the room.
         """
         if not isinstance(user_jid, jid.JID):
-            user_jid = jid.JID(user_jid)
+            user_jid = jid.JID(user_jid).userhostJID()
         for user in room.roster.values():
             if user.entity is not None:
                 if user.entity.userhostJID() == user_jid.userhostJID():