Mercurial > pidgin
comparison src/server.c @ 888:38ffd1faa31a
[gaim-migrate @ 898]
"New Conversation" is logged in chatroom log files.
committer: Tailor Script <tailor@pidgin.im>
| author | Rob Flynn <gaim@robflynn.com> |
|---|---|
| date | Tue, 12 Sep 2000 17:56:39 +0000 |
| parents | bac7089491c1 |
| children | e1a7fc4482b9 |
comparison
equal
deleted
inserted
replaced
| 887:c0ff16ef5e75 | 888:38ffd1faa31a |
|---|---|
| 931 b->is_chat = TRUE; | 931 b->is_chat = TRUE; |
| 932 b->ignored = NULL; | 932 b->ignored = NULL; |
| 933 b->in_room = NULL; | 933 b->in_room = NULL; |
| 934 b->id = id; | 934 b->id = id; |
| 935 g_snprintf(b->name, 80, "%s", name); | 935 g_snprintf(b->name, 80, "%s", name); |
| 936 | |
| 937 if ((general_options & OPT_GEN_LOG_ALL) || find_log_info(b->name)) { | |
| 938 FILE *fd; | |
| 939 char *filename; | |
| 940 | |
| 941 filename = (char *)malloc(100); | |
| 942 snprintf(filename, 100, "%s.chat", b->name); | |
| 943 | |
| 944 fd = open_log_file(filename); | |
| 945 if (!(general_options & OPT_GEN_STRIP_HTML)) | |
| 946 fprintf(fd, "<HR><BR><H3 Align=Center> ---- New Conversation @ %s ----</H3><BR>\n", full_date()); | |
| 947 else | |
| 948 fprintf(fd, "---- New Conversation @ %s ----\n", full_date()); | |
| 949 | |
| 950 fclose(fd); | |
| 951 free(filename); | |
| 952 } | |
| 953 | |
| 936 show_new_buddy_chat(b); | 954 show_new_buddy_chat(b); |
| 937 } | 955 } |
| 938 | 956 |
| 939 void serv_got_chat_left(int id) | 957 void serv_got_chat_left(int id) |
| 940 { | 958 { |
