From 4251bb6d2b1ba5e72f2f539ce94187eb72c142e8 Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Wed, 22 Nov 2006 23:27:57 +0000
Subject: [PATCH] [stlman] fix invisible code. fixes #2695. Thanks

---
 po/pl.po                 | 4 ++--
 src/common/connection.py | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/po/pl.po b/po/pl.po
index 37a8fed582..d72fcf28c6 100644
--- a/po/pl.po
+++ b/po/pl.po
@@ -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
diff --git a/src/common/connection.py b/src/common/connection.py
index 73a3005b31..35ce26b6d3 100644
--- a/src/common/connection.py
+++ b/src/common/connection.py
@@ -607,8 +607,8 @@ def change_status(self, show, msg, auto = False):
 		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':
-- 
GitLab