don't ask lines in logs DB when restore_lines in <= 0

This commit is contained in:
Yann Leboulanger 2006-02-22 21:22:25 +00:00
parent 38f0a20355
commit bf00d4a6d4
1 changed files with 2 additions and 0 deletions

View File

@ -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