diff src/plugins/plugin_xep_0277.py @ 2305:972e33507609

plugin XEP-0060: addManagedNode callbacks now use client syntax instead of profile
author Goffi <goffi@goffi.org>
date Wed, 05 Jul 2017 15:04:43 +0200
parents f8276bd8baf6
children 310a454c8657
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0277.py	Wed Jul 05 15:02:52 2017 +0200
+++ b/src/plugins/plugin_xep_0277.py	Wed Jul 05 15:04:43 2017 +0200
@@ -112,10 +112,10 @@
 
     ## plugin management methods ##
 
-    def _itemsReceived(self, itemsEvent, profile):
+    def _itemsReceived(self, client, itemsEvent):
         """Callback which manage items notifications (publish + retract)"""
         def manageItem(data, event):
-            self.host.bridge.psEvent(C.PS_MICROBLOG, itemsEvent.sender.full(), itemsEvent.nodeIdentifier, event, data, profile)
+            self.host.bridge.psEvent(C.PS_MICROBLOG, itemsEvent.sender.full(), itemsEvent.nodeIdentifier, event, data, client.profile)
 
         for item in itemsEvent.items:
             if item.name == C.PS_ITEM: