diff src/gaimrc.c @ 1525:ba8e6e211af5

[gaim-migrate @ 1535] icqlib updates. beginnings of system logging. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sat, 03 Mar 2001 00:26:04 +0000
parents 6650776468b3
children 72235e3fcff6
line wrap: on
line diff
--- a/src/gaimrc.c	Fri Mar 02 23:59:49 2001 +0000
+++ b/src/gaimrc.c	Sat Mar 03 00:26:04 2001 +0000
@@ -44,6 +44,7 @@
 int display_options;
 int sound_options;
 int font_options;
+int logging_options;
 
 int report_idle, web_browser;
 struct save_pos blist_pos;
@@ -610,6 +611,7 @@
 {
 	char buf[2048];
 	struct parse *p;
+	gboolean read_logging = FALSE;
 
 	buf[0] = 0;
 
@@ -630,6 +632,9 @@
 			sound_options = atoi(p->value[0]);
 		} else if (!strcmp(p->option, "font_options")) {
 			font_options = atoi(p->value[0]);
+		} else if (!strcmp(p->option, "logging_options")) {
+			logging_options = atoi(p->value[0]);
+			read_logging = TRUE;
 		} else if (!strcmp(p->option, "font_face")) {
 			if (p->value[0] != NULL)
 				g_snprintf(fontface, sizeof(fontface), "%s", p->value[0]);
@@ -660,6 +665,14 @@
 
 	}
 
+	if (!read_logging) {
+		logging_options = 0;
+		if (general_options & OPT_GEN_LOG_ALL)
+			logging_options |= OPT_LOG_ALL;
+		if (general_options & OPT_GEN_STRIP_HTML)
+			logging_options |= OPT_LOG_STRIP_HTML;
+	}
+
 }
 
 static void gaimrc_write_options(FILE *f)
@@ -670,6 +683,7 @@
 	fprintf(f, "\tdisplay_options { %d }\n", display_options);
 	fprintf(f, "\tsound_options { %d }\n", sound_options);
 	fprintf(f, "\tfont_options { %d }\n", font_options);
+	fprintf(f, "\tlogging_options { %d }\n", logging_options);
 	if (fontface)
 		fprintf(f, "\tfont_face { %s }\n", fontface);
 	fprintf(f, "\tfont_size { %d }\n", fontsize);