summaryrefslogtreecommitdiff
path: root/src/windows.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-05-17 20:48:46 +0200
committermathieui <mathieui@mathieui.net>2012-05-17 20:48:46 +0200
commitc77e2878b891f000ba1c3a030acd0c195c7e1948 (patch)
tree0e968e8c23aedecc15313b95c873220b0a1bacac /src/windows.py
parentfb450a71386d39afe4059e84632b03f6a230109c (diff)
downloadpoezio-c77e2878b891f000ba1c3a030acd0c195c7e1948.tar.gz
poezio-c77e2878b891f000ba1c3a030acd0c195c7e1948.tar.bz2
poezio-c77e2878b891f000ba1c3a030acd0c195c7e1948.tar.xz
poezio-c77e2878b891f000ba1c3a030acd0c195c7e1948.zip
Do not add a '…' if the nick has the exact same size as the limit
Diffstat (limited to 'src/windows.py')
-rw-r--r--src/windows.py2
1 files changed, 1 insertions, 1 deletions
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