# HG changeset patch # User Goffi # Date 1534004695 -7200 # Node ID 2901e22d17669f1338fa3f3e5c3c85e2fdd909b2 # Parent c26492bd21442d56bfabe6c58f9103b891588741 plugin XEP-0163: fixed bad PEP filtering diff -r c26492bd2144 -r 2901e22d1766 sat/plugins/plugin_xep_0163.py --- a/sat/plugins/plugin_xep_0163.py Sat Aug 11 18:24:55 2018 +0200 +++ b/sat/plugins/plugin_xep_0163.py Sat Aug 11 18:24:55 2018 +0200 @@ -90,11 +90,11 @@ 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