Fix #2172 (select which rooms are logged)

This commit is contained in:
mathieui 2012-12-15 20:29:37 +01:00
parent 266ba884e5
commit 9f7a16141a
2 changed files with 6 additions and 1 deletions

View file

@ -533,6 +533,11 @@ foo = true
The message you want to be sent when someone tries to message you.
*use_log*:: [empty]
Use logs for this JID or not. No value will make poezio fall back to the
global value.
*autorejoin*:: false
Set to 'true' if you want to automatically rejoin the

View file

@ -49,7 +49,7 @@ class Logger(object):
Check that the directory where we want to log the messages
exists. if not, create it
"""
if config.get('use_log', 'false') == 'false':
if config.get_by_tabname('use_log', 'false', room) == 'false':
return None
directory = os.path.join(DATA_HOME, 'logs')
try: