summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorTanguy Ortolo <tanguy@ortolo.eu>2016-11-29 21:30:48 +0100
committerTanguy Ortolo <tanguy@ortolo.eu>2016-11-29 21:30:48 +0100
commit9eff396227afa37f3fb9af9610e7cdd72d86bf14 (patch)
treef6b61b1466e34b0854460fb9bbb768daa0c3e2f9 /plugins
parentefc2ebe2c4eaabd061139a16efb403368f9f82e0 (diff)
downloadpoezio-9eff396227afa37f3fb9af9610e7cdd72d86bf14.tar.gz
poezio-9eff396227afa37f3fb9af9610e7cdd72d86bf14.tar.bz2
poezio-9eff396227afa37f3fb9af9610e7cdd72d86bf14.tar.xz
poezio-9eff396227afa37f3fb9af9610e7cdd72d86bf14.zip
Fix inexistent method calls in the gpg plugin
The gpg plugin tries to call Presence.find() and Message.find(), that do not exist. The correct calls are Presence.xml.find() and Message.xml.find().
Diffstat (limited to 'plugins')
-rw-r--r--plugins/gpg/__init__.py4
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'):