Mercurial > libervia-backend
diff src/plugins/plugin_xep_0045.py @ 2148:a543eda2c923
core (memory/disco): getInfos now handle node + use client instead of profile in many methods
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 12 Feb 2017 20:43:20 +0100 |
parents | 33c8c4973743 |
children | a0e6f7951bd7 |
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0045.py Sun Feb 12 19:23:34 2017 +0100 +++ b/src/plugins/plugin_xep_0045.py Sun Feb 12 20:43:20 2017 +0100 @@ -362,8 +362,9 @@ @param jid_: entity which may have a MUC service, or None for our own server @param profile: %(doc_profile)s """ + client = self.host.getClient(profile) muc_service = None - services = yield self.host.findServiceEntities("conference", "text", jid_, profile=profile) + services = yield self.host.findServiceEntities(client, "conference", "text", jid_) for service in services: if ".irc." not in service.userhost(): # FIXME: @@ -712,7 +713,7 @@ msg = D_(u"{} is not a valid JID!".format(unparsed)) self.text_cmds.feedBack(client, msg, mess_data) return False - d = self.host.getDiscoItems(service, profile=client.profile) + d = self.host.getDiscoItems(client, service) d.addCallback(self._showListUI, client, service) return False