diff options
Diffstat (limited to 'plugins/gpg/__init__.py')
-rw-r--r-- | plugins/gpg/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/gpg/__init__.py b/plugins/gpg/__init__.py index daf76e65..0282c93a 100644 --- a/plugins/gpg/__init__.py +++ b/plugins/gpg/__init__.py @@ -202,7 +202,7 @@ class Plugin(BasePlugin): add 'valid' or 'invalid' into the dict. If it cannot be verified, just add 'signed'. Otherwise, do nothing. """ - signed = presence.find('{%s}x' % (NS_SIGNED,)) + signed = presence.xml.find('{%s}x' % (NS_SIGNED,)) bare = presence['from'].bare full = presence['from'].full if signed is None: @@ -264,7 +264,7 @@ class Plugin(BasePlugin): """ Check if the message is encrypted, and decrypt it if we can. """ - encrypted = message.find('{%s}x' % (NS_ENCRYPTED,)) + encrypted = message.xml.find('{%s}x' % (NS_ENCRYPTED,)) fro = message['from'] if encrypted is not None: if self.config.has_section('keys') and fro.bare in self.config.options('keys'): |