From 6894db02246e4bef4d68b022e7044f90ad74cf82 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 25 Dec 2012 18:56:05 +0100 Subject: [PATCH] fix config names. Fixes #7276 --- src/common/connection.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/connection.py b/src/common/connection.py index 3636c55cc..6924f0eb2 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -2384,7 +2384,7 @@ class Connection(CommonConnection, ConnectionHandlers): if not change_nick: t = p.setTag(nbxmpp.NS_MUC + ' x') tags = {} - timeout = gajim.config.get_per('room', room_jid, + timeout = gajim.config.get_per('rooms', room_jid, 'muc_restore_timeout') if timeout is None or timeout == -2: timeout = gajim.config.get('muc_restore_timeout') @@ -2398,7 +2398,7 @@ class Connection(CommonConnection, ConnectionHandlers): last_date = time.strftime('%Y-%m-%dT%H:%M:%SZ', time.gmtime( last_date)) tags['since'] = last_date - nb = gajim.config.get_per('room', room_jid, 'muc_restore_lines') + nb = gajim.config.get_per('rooms', room_jid, 'muc_restore_lines') if nb is None or nb == -2: nb = gajim.config.get('muc_restore_lines') if nb >= 0: