From ea96c40f66de1620ec1824e676a086dd36eb052f Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Sun, 2 Sep 2012 14:18:11 +0200 Subject: An history_length of 0 was ignored (and the default length would be received) --- src/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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) -- cgit v1.2.3