diff options
author | mathieui <mathieui@mathieui.net> | 2012-01-29 03:34:01 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2012-01-29 03:34:01 +0100 |
commit | 2dc7af10fbb3edd54bbdc3b0d65c6728078fa4b7 (patch) | |
tree | c74f14b71f08a2d3d57859d2ab1f59c53665e5af | |
parent | 1d906aeb43c8cd3d0d2c66d33f198010b288b905 (diff) | |
download | poezio-2dc7af10fbb3edd54bbdc3b0d65c6728078fa4b7.tar.gz poezio-2dc7af10fbb3edd54bbdc3b0d65c6728078fa4b7.tar.bz2 poezio-2dc7af10fbb3edd54bbdc3b0d65c6728078fa4b7.tar.xz poezio-2dc7af10fbb3edd54bbdc3b0d65c6728078fa4b7.zip |
Do not traceback when /gpg outside a ConversationTab
-rw-r--r-- | plugins/gpg/__init__.py | 2 |
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 |