Mercurial > libervia-backend
changeset 2660:2901e22d1766
plugin XEP-0163: fixed bad PEP filtering
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 11 Aug 2018 18:24:55 +0200 |
parents | c26492bd2144 |
children | 661f66d41215 |
files | sat/plugins/plugin_xep_0163.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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