From aa262570a69edeeb5fa645439861cceea8cda2fa Mon Sep 17 00:00:00 2001 From: Goffi Date: Sat, 11 Aug 2018 18:24:55 +0200 Subject: [PATCH] plugin XEP-0163: fixed bad PEP filtering --- sat/plugins/plugin_xep_0163.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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