[stlman] fix invisible code. fixes #2695. Thanks

This commit is contained in:
Yann Leboulanger 2006-11-22 23:27:57 +00:00
parent 67d9e4d409
commit 4251bb6d2b
2 changed files with 4 additions and 4 deletions

View File

@ -5803,11 +5803,11 @@ msgstr "Zostanie połączony z %s bez obsługi OpenPGP."
#. do not show I'm invisible!
#: ../src/common/connection.py:611
msgid "invisible"
msgstr "Niewidoczny"
msgstr "niewidoczny"
#: ../src/common/connection.py:612
msgid "offline"
msgstr "Rozłączony"
msgstr "rozłączony"
#: ../src/common/connection.py:613
#, python-format

View File

@ -607,8 +607,8 @@ class Connection(ConnectionHandlers):
if keyID and USE_GPG and not msg:
lowered_uf_status_msg = helpers.get_uf_show(show).lower()
# do not show I'm invisible!
if lowered_uf_status_msg == _('invisible'):
lowered_uf_status_msg = _('offline')
if lowered_uf_status_msg == _('invisible').lower():
lowered_uf_status_msg = _('offline').lower()
msg = _("I'm %s") % lowered_uf_status_msg
signed = ''
if not auto and not show == 'offline':