don't ask passphrase if the connexion is not active

This commit is contained in:
Yann Leboulanger 2004-10-12 10:54:53 +00:00
parent aac5d4d0f1
commit 25251de7f0
1 changed files with 3 additions and 0 deletions

View File

@ -1345,6 +1345,9 @@ class roster_Window:
del self.contacts[account][u.jid]
def send_status(self, account, status, txt):
if self.plugin.accounts[account].has_key('active'):
if not self.plugin.accounts[account]['active']:
return
if status != 'offline':
keyid = None
save_gpg_pass = 0