summaryrefslogtreecommitdiff
path: root/plugins/gpg/__init__.py
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-03-31 23:24:58 +0100
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-06-12 14:33:39 +0100
commitc1be52847bae48215a8e5589b3a3b94bc1bb913c (patch)
tree36c1cbad9a615d404a345cbdb8309519c98e5185 /plugins/gpg/__init__.py
parent37cd7d1924e666dada17bd691d7eb4894eb51a4e (diff)
downloadpoezio-c1be52847bae48215a8e5589b3a3b94bc1bb913c.tar.gz
poezio-c1be52847bae48215a8e5589b3a3b94bc1bb913c.tar.bz2
poezio-c1be52847bae48215a8e5589b3a3b94bc1bb913c.tar.xz
poezio-c1be52847bae48215a8e5589b3a3b94bc1bb913c.zip
Fix core commands, broken in the previous commit.
Diffstat (limited to 'plugins/gpg/__init__.py')
-rw-r--r--plugins/gpg/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/gpg/__init__.py b/plugins/gpg/__init__.py
index 0f441653..3e1f8b0b 100644
--- a/plugins/gpg/__init__.py
+++ b/plugins/gpg/__init__.py
@@ -194,7 +194,7 @@ class Plugin(BasePlugin):
that we cannot/do not want to encrypt/decrypt messages.
"""
current_presence = self.core.get_status()
- self.core.command_status('%s %s' % (current_presence.show or 'available', current_presence.message or '',))
+ self.core.command.status('%s %s' % (current_presence.show or 'available', current_presence.message or '',))
def on_normal_presence(self, presence):
"""
@@ -293,7 +293,7 @@ class Plugin(BasePlugin):
"""
args = args.split()
if not args:
- return self.core.command_help("gpg")
+ return self.core.command.help("gpg")
if len(args) >= 2:
jid = JID(args[1])
else:
@@ -313,7 +313,7 @@ class Plugin(BasePlugin):
self.contacts[JID(jid).full] = 'disabled'
elif command == 'setkey':
if len(args) != 3:
- return self.core.command_help("gpg")
+ return self.core.command.help("gpg")
if not self.config.has_section('keys'):
self.config.add_section('keys')
self.config.set(jid.bare, args[2], 'keys')