From 9183b73766d4e107155367b253705470f1e2a61f Mon Sep 17 00:00:00 2001 From: Dimitur Kirov Date: Mon, 1 Aug 2005 18:19:36 +0000 Subject: [PATCH] status message was not set in some other cases --- src/common/connection.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/connection.py b/src/common/connection.py index 985e89e9a..c4d04b6b7 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -997,16 +997,16 @@ class Connection: if show == 'online': sshow = None signed = '' + if not msg: + lowered_uf_status_msg = helpers.get_uf_show(show).lower() + msg = _("I'm %s") % lowered_uf_status_msg keyID = gajim.config.get_per('accounts', self.name, 'keyid') if keyID and USE_GPG: if self.connected < 2 and self.gpg.passphrase is None: # We didn't set a passphrase self.dispatch('ERROR', (_('OpenPGP Key was not given'), _('You will be connected to %s without OpenPGP.') % self.name)) - if self.connected >= 2: - if not msg: - lowered_uf_status_msg = helpers.get_uf_show(show).lower() - msg = _("I'm %s") % lowered_uf_status_msg + else: signed = self.gpg.sign(msg, keyID) if signed == 'BAD_PASSPHRASE': signed = ''