summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/gpg/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/gpg/__init__.py b/plugins/gpg/__init__.py
index 01ca6ab2..620a4589 100644
--- a/plugins/gpg/__init__.py
+++ b/plugins/gpg/__init__.py
@@ -176,6 +176,8 @@ class Plugin(BasePlugin):
else:
if isinstance(self.core.current_tab(), ConversationTab):
jid = JID(self.core.current_tab().get_name())
+ else:
+ return
command = args[0]
if command == 'force' or command == 'enable':
# we can force encryption only with contact having an associated