plugins room games, XEP-0045: small fixes, improved docstrings
This commit is contained in:
parent
9f9ea3acf0
commit
f2503f89ae
1 changed files with 32 additions and 19 deletions
|
|
@ -139,7 +139,7 @@ class XEP_0045(object):
|
|||
@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():
|
||||
|
|
|
|||
Loading…
Reference in a new issue