fix config names. Fixes #7276

This commit is contained in:
Yann Leboulanger 2012-12-25 18:56:05 +01:00
parent 37e0797f30
commit 6894db0224
1 changed files with 2 additions and 2 deletions

View File

@ -2384,7 +2384,7 @@ class Connection(CommonConnection, ConnectionHandlers):
if not change_nick: if not change_nick:
t = p.setTag(nbxmpp.NS_MUC + ' x') t = p.setTag(nbxmpp.NS_MUC + ' x')
tags = {} tags = {}
timeout = gajim.config.get_per('room', room_jid, timeout = gajim.config.get_per('rooms', room_jid,
'muc_restore_timeout') 'muc_restore_timeout')
if timeout is None or timeout == -2: if timeout is None or timeout == -2:
timeout = gajim.config.get('muc_restore_timeout') 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 = time.strftime('%Y-%m-%dT%H:%M:%SZ', time.gmtime(
last_date)) last_date))
tags['since'] = 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: if nb is None or nb == -2:
nb = gajim.config.get('muc_restore_lines') nb = gajim.config.get('muc_restore_lines')
if nb >= 0: if nb >= 0: