summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-12-15 22:57:57 +0100
committermathieui <mathieui@mathieui.net>2012-12-15 22:57:57 +0100
commit08ca9bd5c59dd09368958724467c1dbabb0205df (patch)
tree4177506a1a9b2e4cea1c4358a35a6628d8951ee5 /src
parent91975fd261412398ce0cc73561577e96b7378bd2 (diff)
downloadpoezio-08ca9bd5c59dd09368958724467c1dbabb0205df.tar.gz
poezio-08ca9bd5c59dd09368958724467c1dbabb0205df.tar.bz2
poezio-08ca9bd5c59dd09368958724467c1dbabb0205df.tar.xz
poezio-08ca9bd5c59dd09368958724467c1dbabb0205df.zip
Sort the configurations options by name in the documentation
(instead of chaos)
Diffstat (limited to 'src')
-rw-r--r--src/logger.py2
-rw-r--r--src/tabs.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/logger.py b/src/logger.py
index 946c2bab..c4140347 100644
--- a/src/logger.py
+++ b/src/logger.py
@@ -63,7 +63,7 @@ class Logger(object):
except IOError:
return None
- def get_logs(self, jid, nb=200):
+ def get_logs(self, jid, nb=10):
"""
Get the log history for the given jid
"""
diff --git a/src/tabs.py b/src/tabs.py
index 33f91c57..b8588bb2 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -435,7 +435,7 @@ class ChatTab(Tab):
self.update_keys()
# Get the logs
- log_nb = config.get('load_log', 200)
+ log_nb = config.get('load_log', 10)
if isinstance(self, PrivateTab):
logs = logger.get_logs(safeJID(self.get_name()).full.replace('/', '\\'), log_nb)