Do not traceback when /gpg outside a ConversationTab
This commit is contained in:
parent
1d906aeb43
commit
2dc7af10fb
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue