From c77e2878b891f000ba1c3a030acd0c195c7e1948 Mon Sep 17 00:00:00 2001 From: mathieui Date: Thu, 17 May 2012 20:48:46 +0200 Subject: =?UTF-8?q?Do=20not=20add=20a=20'=E2=80=A6'=20if=20the=20nick=20ha?= =?UTF-8?q?s=20the=20exact=20same=20size=20as=20the=20limit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/windows.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/windows.py b/src/windows.py index 29bf5953..06214abb 100644 --- a/src/windows.py +++ b/src/windows.py @@ -51,7 +51,7 @@ def truncate_nick(nick, size=None): size = size or config.get('max_nick_length', 25) if size < 1: size = 1 - if nick and len(nick) >= size: + if nick and len(nick) > size: return nick[:size]+'…' return nick -- cgit v1.2.3