changeset 1144:b8f5fe2d666a

Add option "logging_ignore_status"
author Mikael Berthe <mikael@lilotux.net>
date Tue, 06 Feb 2007 21:43:42 +0100
parents d48822e6586b
children 2513b26cd710
files mcabber/mcabberrc.example mcabber/src/histolog.c
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mcabber/mcabberrc.example	Tue Feb 06 13:35:13 2007 +0100
+++ b/mcabber/mcabberrc.example	Tue Feb 06 21:43:42 2007 +0100
@@ -92,6 +92,8 @@
 
 # History logging
 # You can save the messages history: set logging = 1
+# Set 'logging_ignore_status' to 1 if you do not want to save status changes
+# (and status messages) to the log files (default: 0).
 # You can load (read) the messages history: set load_logs = 1
 # If you enable load_logs, you can use the 'max_history_age' setting below.
 # Default logging directory (logging_dir) is $HOME/.mcabber/histo/
@@ -103,6 +105,7 @@
 #set logging = 1
 #set load_logs = 1
 #set logging_dir = /home/mikael/.mcabber/histo/
+#set logging_ignore_status = 1
 
 # Set log_muc_conf to 1 to enable MUC chatrooms logging (default = 0)
 #set log_muc_conf = 1
--- a/mcabber/src/histolog.c	Tue Feb 06 13:35:13 2007 +0100
+++ b/mcabber/src/histolog.c	Tue Feb 06 21:43:42 2007 +0100
@@ -77,6 +77,10 @@
   if (!UseFileLogging)
     return;
 
+  // Do not log status messages when 'logging_ignore_status' is set
+  if (type == 'S' && settings_opt_get_int("logging_ignore_status"))
+    return;
+
   filename = user_histo_file(bjid);
 
   // If timestamp is null, get current date