Mercurial > pidgin.yaz
comparison src/conversation.c @ 70:dead1eb6d654
[gaim-migrate @ 80]
Full Dates On Conversation Logging
BuddyList Name Fix
committer: Tailor Script <tailor@pidgin.im>
author | Rob Flynn <gaim@robflynn.com> |
---|---|
date | Tue, 28 Mar 2000 12:15:19 +0000 |
parents | 03ec647d24e9 |
children | bfdc427b936d |
comparison
equal
deleted
inserted
replaced
69:3b479e2700c9 | 70:dead1eb6d654 |
---|---|
69 void set_state_lock(int i) | 69 void set_state_lock(int i) |
70 { | 70 { |
71 state_lock = i; | 71 state_lock = i; |
72 } | 72 } |
73 | 73 |
74 | |
75 struct conversation *new_conversation(char *name) | 74 struct conversation *new_conversation(char *name) |
76 { | 75 { |
77 struct conversation *c; | 76 struct conversation *c; |
78 | 77 |
79 c = find_conversation(name); | 78 c = find_conversation(name); |
84 c = (struct conversation *)g_new0(struct conversation, 1); | 83 c = (struct conversation *)g_new0(struct conversation, 1); |
85 g_snprintf(c->name, sizeof(c->name), "%s", name); | 84 g_snprintf(c->name, sizeof(c->name), "%s", name); |
86 | 85 |
87 if ((general_options & OPT_GEN_LOG_ALL) || find_log_info(c->name)) { | 86 if ((general_options & OPT_GEN_LOG_ALL) || find_log_info(c->name)) { |
88 FILE *fd; | 87 FILE *fd; |
88 | |
89 fd = open_log_file(c); | 89 fd = open_log_file(c); |
90 if (!(general_options & OPT_GEN_STRIP_HTML)) | 90 if (!(general_options & OPT_GEN_STRIP_HTML)) |
91 fprintf(fd, "<HR><BR><H3 Align=Center> ---- New Conversation @ %s ----</H3><BR>\n", date()); | 91 fprintf(fd, "<HR><BR><H3 Align=Center> ---- New Conversation @ %s ----</H3><BR>\n", full_date()); |
92 else | 92 else |
93 fprintf(fd, " ---- New Conversation @ %s ----\n", date()); | 93 fprintf(fd, " ---- New Conversation @ %s ----\n", full_date()); |
94 | |
94 fclose(fd); | 95 fclose(fd); |
95 } | 96 } |
96 | 97 |
97 show_conv(c); | 98 show_conv(c); |
98 conversations = g_list_append(conversations, c); | 99 conversations = g_list_append(conversations, c); |