summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2012-09-02 14:18:11 +0200
committerFlorent Le Coz <louiz@louiz.org>2012-09-02 14:18:11 +0200
commitea96c40f66de1620ec1824e676a086dd36eb052f (patch)
treef5c0808d843bb83ffb32d6c2bfe33c3a4954ff89 /src
parentaffdcb07b4b3fa4543d01dcc35ac358e76936084 (diff)
downloadpoezio-ea96c40f66de1620ec1824e676a086dd36eb052f.tar.gz
poezio-ea96c40f66de1620ec1824e676a086dd36eb052f.tar.bz2
poezio-ea96c40f66de1620ec1824e676a086dd36eb052f.tar.xz
poezio-ea96c40f66de1620ec1824e676a086dd36eb052f.zip
An history_length of 0 was ignored (and the default length would be received)
Diffstat (limited to 'src')
-rw-r--r--src/core.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core.py b/src/core.py
index d7f9f68e..b34c38ca 100644
--- a/src/core.py
+++ b/src/core.py
@@ -1480,7 +1480,7 @@ class Core(object):
histo_length= config.get('muc_history_length', 20)
if histo_length == -1:
histo_length= None
- if histo_length:
+ if histo_length is not None:
histo_length= str(histo_length)
if tab and not tab.joined:
seconds = (int(time.time()) - tab.last_connection) if tab.last_connection != 0 else 0
@@ -2548,7 +2548,7 @@ class Core(object):
histo_length= config.get('muc_history_length', 20)
if histo_length == -1:
histo_length= None
- if histo_length:
+ if histo_length is not None:
histo_length= str(histo_length)
muc.join_groupchat(self.xmpp, bm.jid, nick, None, histo_length)