summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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)