summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: