Mercurial > pidgin
diff src/log.c @ 5560:b7319c094153
[gaim-migrate @ 5961]
It compiles now, but if you use it, you won't have any accounts.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Fri, 30 May 2003 03:25:39 +0000 |
parents | 7b36d02031a2 |
children | 9eb5b13fd412 |
line wrap: on
line diff
--- a/src/log.c Fri May 30 03:17:13 2003 +0000 +++ b/src/log.c Fri May 30 03:25:39 2003 +0000 @@ -289,10 +289,13 @@ FILE *fd; char text[256], html[256]; - if ((logging_options & why) != why) + if (((why & OPT_LOG_MY_SIGNON) && + !gaim_prefs_get_bool("/gaim/gtk/logging/log_own_states"))) { + return; + } - if (logging_options & OPT_LOG_INDIVIDUAL) { + if (gaim_prefs_get_bool("/gaim/gtk/logging/individual_logs")) { if (why & OPT_LOG_MY_SIGNON) fd = open_system_log_file(gc ? gc->username : NULL); else @@ -418,14 +421,12 @@ } } - if (gaim_prefs_get_bool("/gaim/gtk/logging/strip_html")) { + if (gaim_prefs_get_bool("/gaim/gtk/logging/strip_html")) fprintf(fd, "---- %s ----\n", text); - } else { - if (logging_options & OPT_LOG_INDIVIDUAL) - fprintf(fd, "<HR>%s<BR><HR><BR>\n", html); - else - fprintf(fd, "%s<BR>\n", html); - } + else if (gaim_prefs_get_bool("/gaim/gtk/logging/individual_logs")) + fprintf(fd, "<HR>%s<BR><HR><BR>\n", html); + else + fprintf(fd, "%s<BR>\n", html); fclose(fd); }