Mercurial > pidgin.yaz
comparison src/conversation.c @ 373:1d29321843b0
[gaim-migrate @ 383]
raise chat windows and log chat
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Sat, 10 Jun 2000 00:48:43 +0000 |
parents | 1c4ce1da3946 |
children | 1eae69f076d2 |
comparison
equal
deleted
inserted
replaced
372:8c3b075d7aba | 373:1d29321843b0 |
---|---|
106 g_snprintf(c->name, sizeof(c->name), "%s", name); | 106 g_snprintf(c->name, sizeof(c->name), "%s", name); |
107 | 107 |
108 if ((general_options & OPT_GEN_LOG_ALL) || find_log_info(c->name)) { | 108 if ((general_options & OPT_GEN_LOG_ALL) || find_log_info(c->name)) { |
109 FILE *fd; | 109 FILE *fd; |
110 | 110 |
111 fd = open_log_file(c); | 111 fd = open_log_file(c->name); |
112 if (!(general_options & OPT_GEN_STRIP_HTML)) | 112 if (!(general_options & OPT_GEN_STRIP_HTML)) |
113 fprintf(fd, "<HR><BR><H3 Align=Center> ---- New Conversation @ %s ----</H3><BR>\n", full_date()); | 113 fprintf(fd, "<HR><BR><H3 Align=Center> ---- New Conversation @ %s ----</H3><BR>\n", full_date()); |
114 else | 114 else |
115 fprintf(fd, " ---- New Conversation @ %s ----\n", full_date()); | 115 fprintf(fd, " ---- New Conversation @ %s ----\n", full_date()); |
116 | 116 |
868 if (general_options & OPT_GEN_STRIP_HTML) { | 868 if (general_options & OPT_GEN_STRIP_HTML) { |
869 t1 = strip_html(what); | 869 t1 = strip_html(what); |
870 } else { | 870 } else { |
871 t1 = what; | 871 t1 = what; |
872 } | 872 } |
873 fd = open_log_file(c); | 873 fd = open_log_file(c->name); |
874 fprintf(fd, "%s\n", t1); | 874 fprintf(fd, "%s\n", t1); |
875 fclose(fd); | 875 fclose(fd); |
876 if (general_options & OPT_GEN_STRIP_HTML) { | 876 if (general_options & OPT_GEN_STRIP_HTML) { |
877 g_free(t1); | 877 g_free(t1); |
878 } | 878 } |
1006 t2 = strip_html(what); | 1006 t2 = strip_html(what); |
1007 } else { | 1007 } else { |
1008 t1 = buf; | 1008 t1 = buf; |
1009 t2 = what; | 1009 t2 = what; |
1010 } | 1010 } |
1011 fd = open_log_file(c); | 1011 fd = open_log_file(c->name); |
1012 fprintf(fd, "%s%s\n", t1, t2); | 1012 fprintf(fd, "%s%s\n", t1, t2); |
1013 fclose(fd); | 1013 fclose(fd); |
1014 if (general_options & OPT_GEN_STRIP_HTML) { | 1014 if (general_options & OPT_GEN_STRIP_HTML) { |
1015 g_free(t1); | 1015 g_free(t1); |
1016 g_free(t2); | 1016 g_free(t2); |