From 25251de7f02704c722479ec7a9292f4133994ae3 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 12 Oct 2004 10:54:53 +0000 Subject: [PATCH] don't ask passphrase if the connexion is not active --- plugins/gtkgui/gtkgui.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/gtkgui/gtkgui.py b/plugins/gtkgui/gtkgui.py index 757263a3e..91647ae5b 100644 --- a/plugins/gtkgui/gtkgui.py +++ b/plugins/gtkgui/gtkgui.py @@ -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