Do not traceback when /gpg outside a ConversationTab

This commit is contained in:
mathieui 2012-01-29 03:34:01 +01:00
parent 1d906aeb43
commit 2dc7af10fb

View file

@ -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