# HG changeset patch # User Mikael Berthe # Date 1170794622 -3600 # Node ID b8f5fe2d666a6231fdfe7dc1267384e90ef4daac # Parent d48822e6586bda233d9e1dee64d8ad8575e06f99 Add option "logging_ignore_status" diff -r d48822e6586b -r b8f5fe2d666a mcabber/mcabberrc.example --- 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 diff -r d48822e6586b -r b8f5fe2d666a mcabber/src/histolog.c --- 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