comparison src/server.c @ 3457:222e23f91092

[gaim-migrate @ 3505] Deryni made it so we can all log chats and IMs seperately. He had it retain your old option--it would log both if you had it configured that way. I made it so that if you had logging on it will log IMs--but you'll have to turn on logging chats manually. So if you want to log chats, turn that on. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Wed, 28 Aug 2002 05:55:48 +0000
parents b48065e52337
children 7a3f16a375a5
comparison
equal deleted inserted replaced
3456:b48065e52337 3457:222e23f91092
935 b->gc = gc; 935 b->gc = gc;
936 b->send_history = g_list_append(NULL, NULL); 936 b->send_history = g_list_append(NULL, NULL);
937 b->history = g_string_new(""); 937 b->history = g_string_new("");
938 g_snprintf(b->name, 80, "%s", name); 938 g_snprintf(b->name, 80, "%s", name);
939 939
940 if ((logging_options & OPT_LOG_ALL) || find_log_info(b->name)) { 940 if ((logging_options & OPT_LOG_CHATS) || find_log_info(b->name)) {
941 FILE *fd; 941 FILE *fd;
942 char *filename; 942 char *filename;
943 943
944 filename = (char *)malloc(100); 944 filename = (char *)malloc(100);
945 g_snprintf(filename, 100, "%s.chat", b->name); 945 g_snprintf(filename, 100, "%s.chat", b->name);
946 946
947 fd = open_log_file(filename); 947 fd = open_log_file(filename, b->is_chat);
948 if (fd) { 948 if (fd) {
949 if (!(logging_options & OPT_LOG_STRIP_HTML)) 949 if (!(logging_options & OPT_LOG_STRIP_HTML))
950 fprintf(fd, 950 fprintf(fd,
951 "<HR><BR><H3 Align=Center> ---- New Conversation @ %s ----</H3><BR>\n", 951 "<HR><BR><H3 Align=Center> ---- New Conversation @ %s ----</H3><BR>\n",
952 full_date()); 952 full_date());