plugin XEP-0060: addManagedNode callbacks now use client syntax instead of profile
This commit is contained in:
parent
359b3a1b43
commit
c56d3fc759
1 changed files with 10 additions and 11 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue