':' spacing. always set a status message
This commit is contained in:
parent
8c7d818eca
commit
3c46c13d8d
|
@ -1003,11 +1003,9 @@ class Connection:
|
||||||
# We didn't set a passphrase
|
# We didn't set a passphrase
|
||||||
self.dispatch('ERROR', (_('OpenPGP Key was not given'),
|
self.dispatch('ERROR', (_('OpenPGP Key was not given'),
|
||||||
_('You will be connected to %s without OpenPGP.') % self.name))
|
_('You will be connected to %s without OpenPGP.') % self.name))
|
||||||
else:
|
if self.connected >= 2
|
||||||
if not msg:
|
if not msg:
|
||||||
lowered_uf_status_msg = helpers.get_uf_show(show).lower()
|
lowered_uf_status_msg = helpers.get_uf_show(show).lower()
|
||||||
# FIXME: so, I will have an empty message, not: "I'm online",
|
|
||||||
# because I have a gpg
|
|
||||||
msg = _("I'm %s") % lowered_uf_status_msg
|
msg = _("I'm %s") % lowered_uf_status_msg
|
||||||
signed = self.gpg.sign(msg, keyID)
|
signed = self.gpg.sign(msg, keyID)
|
||||||
if signed == 'BAD_PASSPHRASE':
|
if signed == 'BAD_PASSPHRASE':
|
||||||
|
|
|
@ -623,6 +623,8 @@ class StatusTable:
|
||||||
if status:
|
if status:
|
||||||
status = status.strip()
|
status = status.strip()
|
||||||
if status != '':
|
if status != '':
|
||||||
|
if gtk.gtk_version < (2, 6, 0) or gtk.pygtk_version < (2, 6, 0):
|
||||||
|
# FIXME: check and do the same if we have more than one \n
|
||||||
status = self.strip_text(status, 50)
|
status = self.strip_text(status, 50)
|
||||||
str_status += ' - ' + status
|
str_status += ' - ' + status
|
||||||
return gtkgui_helpers.escape_for_pango_markup(str_status)
|
return gtkgui_helpers.escape_for_pango_markup(str_status)
|
||||||
|
|
Loading…
Reference in New Issue