From 9f7a16141ab7f4ac6b094eb5d0836507e3edf80c Mon Sep 17 00:00:00 2001 From: mathieui Date: Sat, 15 Dec 2012 20:29:37 +0100 Subject: [PATCH] Fix #2172 (select which rooms are logged) --- doc/en/configure.txt | 5 +++++ src/logger.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/en/configure.txt b/doc/en/configure.txt index 39a2166e..b5639c1d 100644 --- a/doc/en/configure.txt +++ b/doc/en/configure.txt @@ -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 diff --git a/src/logger.py b/src/logger.py index 8dfb25ea..946c2bab 100644 --- a/src/logger.py +++ b/src/logger.py @@ -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: