summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-12-15 20:29:37 +0100
committermathieui <mathieui@mathieui.net>2012-12-15 20:29:37 +0100
commit9f7a16141ab7f4ac6b094eb5d0836507e3edf80c (patch)
treea1bc58b634aad1e84dae44637038107844e6f5b2
parent266ba884e50b550122fefb568888fb5d1f91fba7 (diff)
downloadpoezio-9f7a16141ab7f4ac6b094eb5d0836507e3edf80c.tar.gz
poezio-9f7a16141ab7f4ac6b094eb5d0836507e3edf80c.tar.bz2
poezio-9f7a16141ab7f4ac6b094eb5d0836507e3edf80c.tar.xz
poezio-9f7a16141ab7f4ac6b094eb5d0836507e3edf80c.zip
Fix #2172 (select which rooms are logged)
-rw-r--r--doc/en/configure.txt5
-rw-r--r--src/logger.py2
2 files changed, 6 insertions, 1 deletions
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: