plugin XEP-0163: fixed bad PEP filtering
This commit is contained in:
parent
e18036d2fb
commit
aa262570a6
1 changed files with 2 additions and 2 deletions
|
|
@ -90,11 +90,11 @@ class XEP_0163(object):
|
||||||
self.pep_events.add(node + "+notify")
|
self.pep_events.add(node + "+notify")
|
||||||
|
|
||||||
def filterPEPEvent(client, itemsEvent):
|
def filterPEPEvent(client, itemsEvent):
|
||||||
"""Ignore messages which are not coming from PEP (i.e. main server)
|
"""Ignore messages which are not coming from PEP (i.e. a bare jid)
|
||||||
|
|
||||||
@param itemsEvent(pubsub.ItemsEvent): pubsub event
|
@param itemsEvent(pubsub.ItemsEvent): pubsub event
|
||||||
"""
|
"""
|
||||||
if itemsEvent.sender.user or itemsEvent.sender.resource:
|
if not itemsEvent.sender.user or itemsEvent.sender.resource:
|
||||||
log.debug(
|
log.debug(
|
||||||
"ignoring non PEP event from {} (profile={})".format(
|
"ignoring non PEP event from {} (profile={})".format(
|
||||||
itemsEvent.sender.full(), client.profile
|
itemsEvent.sender.full(), client.profile
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue