summaryrefslogtreecommitdiff
path: root/src/windows/funcs.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2014-10-20 21:04:14 +0200
committermathieui <mathieui@mathieui.net>2014-10-20 21:21:04 +0200
commitf9734cde5623aaf701e222b00d5eebdf7a152772 (patch)
tree8f7b241df886d2c17eaee8f3630511631bf8cc3a /src/windows/funcs.py
parent7b01c62e07612a123f3ffe94583f51099e470c3b (diff)
downloadpoezio-f9734cde5623aaf701e222b00d5eebdf7a152772.tar.gz
poezio-f9734cde5623aaf701e222b00d5eebdf7a152772.tar.bz2
poezio-f9734cde5623aaf701e222b00d5eebdf7a152772.tar.xz
poezio-f9734cde5623aaf701e222b00d5eebdf7a152772.zip
Remove the (sometimes wrong) default values in the config.get() calls
Diffstat (limited to 'src/windows/funcs.py')
-rw-r--r--src/windows/funcs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/windows/funcs.py b/src/windows/funcs.py
index 47011faf..d58d4683 100644
--- a/src/windows/funcs.py
+++ b/src/windows/funcs.py
@@ -20,7 +20,7 @@ def find_first_format_char(text, chars=None):
return pos
def truncate_nick(nick, size=None):
- size = size or config.get('max_nick_length', 25)
+ size = size or config.get('max_nick_length')
if size < 1:
size = 1
if nick and len(nick) > size: