plugin XEP-0060: addManagedNode callbacks now use client syntax instead of profile

This commit is contained in:
Goffi 2017-07-05 15:04:43 +02:00
commit c56d3fc759

View file

@ -112,10 +112,10 @@ class XEP_0277(object):
## 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: