From c1be52847bae48215a8e5589b3a3b94bc1bb913c Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Thu, 31 Mar 2016 23:24:58 +0100 Subject: Fix core commands, broken in the previous commit. --- plugins/gpg/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/gpg') 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') -- cgit v1.2.3