diff mcabber/src/histolog.c @ 1144:b8f5fe2d666a

Add option "logging_ignore_status"
author Mikael Berthe <mikael@lilotux.net>
date Tue, 06 Feb 2007 21:43:42 +0100
parents 5be2408a6534
children 3b9bbf6c4c93
line wrap: on
line diff
--- 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