summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-01-29 03:34:01 +0100
committermathieui <mathieui@mathieui.net>2012-01-29 03:34:01 +0100
commit2dc7af10fbb3edd54bbdc3b0d65c6728078fa4b7 (patch)
treec74f14b71f08a2d3d57859d2ab1f59c53665e5af /plugins
parent1d906aeb43c8cd3d0d2c66d33f198010b288b905 (diff)
downloadpoezio-2dc7af10fbb3edd54bbdc3b0d65c6728078fa4b7.tar.gz
poezio-2dc7af10fbb3edd54bbdc3b0d65c6728078fa4b7.tar.bz2
poezio-2dc7af10fbb3edd54bbdc3b0d65c6728078fa4b7.tar.xz
poezio-2dc7af10fbb3edd54bbdc3b0d65c6728078fa4b7.zip
Do not traceback when /gpg outside a ConversationTab
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