diff --git a/sat/plugins/plugin_xep_0163.py b/sat/plugins/plugin_xep_0163.py index cddd809a..7d403974 100755 --- a/sat/plugins/plugin_xep_0163.py +++ b/sat/plugins/plugin_xep_0163.py @@ -90,11 +90,11 @@ class XEP_0163(object): self.pep_events.add(node + "+notify") 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 """ - if itemsEvent.sender.user or itemsEvent.sender.resource: + if not itemsEvent.sender.user or itemsEvent.sender.resource: log.debug( "ignoring non PEP event from {} (profile={})".format( itemsEvent.sender.full(), client.profile