diff src/plugins/plugin_xep_0060.py @ 1552:e0bde0d0b321

core (disco): use of “profile” instead of “profile_key” in several disco methods
author Goffi <goffi@goffi.org>
date Mon, 02 Nov 2015 22:02:41 +0100
parents fcfec24c87f3
children c2d96f74105e
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0060.py	Mon Nov 02 22:02:41 2015 +0100
+++ b/src/plugins/plugin_xep_0060.py	Mon Nov 02 22:02:41 2015 +0100
@@ -96,7 +96,7 @@
     @defer.inlineCallbacks
     def profileConnected(self, profile):
         client = self.host.getClient(profile)
-        pubsub_services = yield self.host.findServiceEntities("pubsub", "service", profile_key = profile)
+        pubsub_services = yield self.host.findServiceEntities("pubsub", "service", profile=profile)
         if pubsub_services:
             # we use one of the found services as our default pubsub service
             client.pubsub_service = pubsub_services.pop()