From bf00d4a6d429dc4f97e2da5b01d845eea7e7b9aa Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Wed, 22 Feb 2006 21:22:25 +0000 Subject: [PATCH] don't ask lines in logs DB when restore_lines in <= 0 --- src/chat_control.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/chat_control.py b/src/chat_control.py index 0b84d4b21..d3076a1cd 100644 --- a/src/chat_control.py +++ b/src/chat_control.py @@ -1307,6 +1307,8 @@ class ChatControl(ChatControlBase): # How many lines to restore and when to time them out restore_how_many = gajim.config.get('restore_lines') + if restore_how_many <= 0: + return timeout = gajim.config.get('restore_timeout') # in minutes # number of messages that are in queue and are already logged pending_how_many = 0 # we want to avoid duplication