Mercurial > pidgin
comparison src/server.c @ 1525:ba8e6e211af5
[gaim-migrate @ 1535]
icqlib updates. beginnings of system logging.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Sat, 03 Mar 2001 00:26:04 +0000 |
parents | 4c62ead808a2 |
children | 5e54c7a2a394 |
comparison
equal
deleted
inserted
replaced
1524:a5c87ada5143 | 1525:ba8e6e211af5 |
---|---|
446 | 446 |
447 while (cnv) { | 447 while (cnv) { |
448 cv = (struct conversation *)cnv->data; | 448 cv = (struct conversation *)cnv->data; |
449 if (!strcasecmp(who, normalize(cv->name))) { | 449 if (!strcasecmp(who, normalize(cv->name))) { |
450 g_snprintf(cv->name, sizeof(cv->name), "%s", name); | 450 g_snprintf(cv->name, sizeof(cv->name), "%s", name); |
451 if (find_log_info(name) || (general_options & OPT_GEN_LOG_ALL)) | 451 if (find_log_info(name) || (logging_options & OPT_LOG_ALL)) |
452 g_snprintf(who, 63, LOG_CONVERSATION_TITLE, name); | 452 g_snprintf(who, 63, LOG_CONVERSATION_TITLE, name); |
453 else | 453 else |
454 g_snprintf(who, 63, CONVERSATION_TITLE, name); | 454 g_snprintf(who, 63, CONVERSATION_TITLE, name); |
455 gtk_window_set_title(GTK_WINDOW(cv->window), who); | 455 gtk_window_set_title(GTK_WINDOW(cv->window), who); |
456 /* was g_free(buf), but break gives us that | 456 /* was g_free(buf), but break gives us that |
635 b->id = id; | 635 b->id = id; |
636 b->gc = gc; | 636 b->gc = gc; |
637 b->history = g_string_new(""); | 637 b->history = g_string_new(""); |
638 g_snprintf(b->name, 80, "%s", name); | 638 g_snprintf(b->name, 80, "%s", name); |
639 | 639 |
640 if ((general_options & OPT_GEN_LOG_ALL) || find_log_info(b->name)) { | 640 if ((logging_options & OPT_LOG_ALL) || find_log_info(b->name)) { |
641 FILE *fd; | 641 FILE *fd; |
642 char *filename; | 642 char *filename; |
643 | 643 |
644 filename = (char *)malloc(100); | 644 filename = (char *)malloc(100); |
645 g_snprintf(filename, 100, "%s.chat", b->name); | 645 g_snprintf(filename, 100, "%s.chat", b->name); |
646 | 646 |
647 fd = open_log_file(filename); | 647 fd = open_log_file(filename); |
648 if (!(general_options & OPT_GEN_STRIP_HTML)) | 648 if (!(logging_options & OPT_LOG_STRIP_HTML)) |
649 fprintf(fd, | 649 fprintf(fd, |
650 "<HR><BR><H3 Align=Center> ---- New Conversation @ %s ----</H3><BR>\n", | 650 "<HR><BR><H3 Align=Center> ---- New Conversation @ %s ----</H3><BR>\n", |
651 full_date()); | 651 full_date()); |
652 else | 652 else |
653 fprintf(fd, "---- New Conversation @ %s ----\n", full_date()); | 653 fprintf(fd, "---- New Conversation @ %s ----\n", full_date()); |