# HG changeset patch # User Goffi # Date 1473458073 -7200 # Node ID ee9621d92cb9b56a964a869d356354d7335db8c1 # Parent 8fa0d95c2142af5d8e84b8e34f325d0ce93c9054 plugin XEP-0054: fix use of full jid for room occupants diff -r 8fa0d95c2142 -r ee9621d92cb9 src/plugins/plugin_xep_0054.py --- a/src/plugins/plugin_xep_0054.py Fri Sep 09 23:54:33 2016 +0200 +++ b/src/plugins/plugin_xep_0054.py Fri Sep 09 23:54:33 2016 +0200 @@ -283,13 +283,14 @@ @param target(jid.JID): jid from which we want the VCard @result: id to retrieve the profile """ - to_jid = target.userhostJID() + target_bare = target.userhostJID() + to_jid = target if self.isRoom(client, target_bare) else target_bare log.debug(_(u"Asking for %s's VCard") % to_jid.userhost()) reg_request = client.IQ('get') reg_request["from"] = client.jid.full() - reg_request["to"] = to_jid.userhost() + reg_request["to"] = to_jid.full() reg_request.addElement('vCard', NS_VCARD) - reg_request.send(to_jid.userhost()).addCallbacks(self._getCardCb, self._getCardEb, callbackArgs=[to_jid, client], errbackArgs=[to_jid, client]) + reg_request.send(to_jid.full()).addCallbacks(self._getCardCb, self._getCardEb, callbackArgs=[to_jid, client], errbackArgs=[to_jid, client]) return reg_request["id"] def getAvatarFile(self, avatar_hash):