diff options
Diffstat (limited to 'nbxmpp/modules')
-rw-r--r-- | nbxmpp/modules/openpgp.py | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/nbxmpp/modules/openpgp.py b/nbxmpp/modules/openpgp.py index 0b2978d..40e3d14 100644 --- a/nbxmpp/modules/openpgp.py +++ b/nbxmpp/modules/openpgp.py @@ -81,13 +81,7 @@ class OpenPGP: return def _process_pubsub_openpgp(self, _client, stanza, properties): - if not properties.is_pubsub_event: - return - - if properties.pubsub_event.node != NS_OPENPGP_PK: - return - - ''' + """ <item> <public-keys-list xmlns='urn:xmpp:openpgp:0'> <pubkey-metadata @@ -99,8 +93,15 @@ class OpenPGP: date='1953-05-16T12:00:00Z' /> </public-keys-list> - </item> - ''' + </item> + """ + + if not properties.is_pubsub_event: + return + + if properties.pubsub_event.node != NS_OPENPGP_PK: + return + item = properties.pubsub_event.item if item is None: # Retract, Deleted or Purged |