Mercurial > pidgin
comparison src/log.c @ 8408:13a65fd6a932
[gaim-migrate @ 9138]
fix timestamp sizes, and minorly break the string freeze in the process
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Mon, 08 Mar 2004 15:44:26 +0000 |
parents | 2279bfa6aa59 |
children | 5cb93726e4d5 |
comparison
equal
deleted
inserted
replaced
8407:15614a7cdc13 | 8408:13a65fd6a932 |
---|---|
503 | 503 |
504 gaim_markup_html_to_xhtml(message, &msg_fixed, NULL); | 504 gaim_markup_html_to_xhtml(message, &msg_fixed, NULL); |
505 | 505 |
506 strftime(date, sizeof(date), "%H:%M:%S", localtime(&time)); | 506 strftime(date, sizeof(date), "%H:%M:%S", localtime(&time)); |
507 if (type & GAIM_MESSAGE_SYSTEM) | 507 if (type & GAIM_MESSAGE_SYSTEM) |
508 fprintf(data->file, "(%s)<b> %s</b><br/>\n", date, msg_fixed); | 508 fprintf(data->file, "<font size=\"2\">(%s)</font><b> %s</b><br/>\n", date, msg_fixed); |
509 else if (type & GAIM_MESSAGE_WHISPER) | 509 else if (type & GAIM_MESSAGE_WHISPER) |
510 fprintf(data->file, "<font color=\"#6C2585\">(%s)<b> %s:</b></font> %s<br/>\n", | 510 fprintf(data->file, "<font color=\"#6C2585\"><font size=\"2\">(%s)</font> <b>%s:</b></font> %s<br/>\n", |
511 date, from, msg_fixed); | 511 date, from, msg_fixed); |
512 else if (type & GAIM_MESSAGE_AUTO_RESP) { | 512 else if (type & GAIM_MESSAGE_AUTO_RESP) { |
513 if (type & GAIM_MESSAGE_SEND) | 513 if (type & GAIM_MESSAGE_SEND) |
514 fprintf(data->file, _("<font color=\"#16569E\">(%s) <b>%s <AUTO-REPLY>:</b></font> %s<br/>\n"), date, from, msg_fixed); | 514 fprintf(data->file, _("<font color=\"#16569E\"><font size=\"2\">(%s)</font> <b>%s <AUTO-REPLY>:</b></font> %s<br/>\n"), date, from, msg_fixed); |
515 else if (type & GAIM_MESSAGE_RECV) | 515 else if (type & GAIM_MESSAGE_RECV) |
516 fprintf(data->file, _("<font color=\"#A82F2F\">(%s) <b>%s <AUTO-REPLY>:</b></font> %s<br/>\n"), date, from, msg_fixed); | 516 fprintf(data->file, _("<font color=\"#A82F2F\"><font size=\"2\">(%s)</font> <b>%s <AUTO-REPLY>:</b></font> %s<br/>\n"), date, from, msg_fixed); |
517 } else if (type & GAIM_MESSAGE_RECV) { | 517 } else if (type & GAIM_MESSAGE_RECV) { |
518 if(gaim_message_meify(msg_fixed, -1)) | 518 if(gaim_message_meify(msg_fixed, -1)) |
519 fprintf(data->file, "<font color=\"#6C2585\">(%s) <b>***%s</b></font> <font sml=\"%s\">%s</font><br/>\n", | 519 fprintf(data->file, "<font color=\"#6C2585\"><font size=\"2\">(%s)</font> <b>***%s</b></font> <font sml=\"%s\">%s</font><br/>\n", |
520 date, from, gc->prpl->info->name, msg_fixed); | 520 date, from, gc->prpl->info->name, msg_fixed); |
521 else | 521 else |
522 fprintf(data->file, "<font color=\"#A82F2F\">(%s) <b>%s:</b></font> <font sml=\"%s\">%s</font><br/>\n", | 522 fprintf(data->file, "<font color=\"#A82F2F\"><font size=\"2\">(%s)</font> <b>%s:</b></font> <font sml=\"%s\">%s</font><br/>\n", |
523 date, from, gc->prpl->info->name, msg_fixed); | 523 date, from, gc->prpl->info->name, msg_fixed); |
524 } else if (type & GAIM_MESSAGE_SEND) { | 524 } else if (type & GAIM_MESSAGE_SEND) { |
525 if(gaim_message_meify(msg_fixed, -1)) | 525 if(gaim_message_meify(msg_fixed, -1)) |
526 fprintf(data->file, "<font color=\"#6C2585\">(%s) <b>***%s</b></font> <font sml=\"%s\">%s</font><br/>\n", | 526 fprintf(data->file, "<font color=\"#6C2585\"><font size=\"2\">(%s)</font> <b>***%s</b></font> <font sml=\"%s\">%s</font><br/>\n", |
527 date, from, gc->prpl->info->name, msg_fixed); | 527 date, from, gc->prpl->info->name, msg_fixed); |
528 else | 528 else |
529 fprintf(data->file, "<font color=\"#16569E\">(%s) <b>%s:</b></font> <font sml=\"%s\">%s</font><br/>\n", | 529 fprintf(data->file, "<font color=\"#16569E\"><font size=\"2\">(%s)</font> <b>%s:</b></font> <font sml=\"%s\">%s</font><br/>\n", |
530 date, from, gc->prpl->info->name, msg_fixed); | 530 date, from, gc->prpl->info->name, msg_fixed); |
531 } | 531 } |
532 g_free(msg_fixed); | 532 g_free(msg_fixed); |
533 fflush(data->file); | 533 fflush(data->file); |
534 } | 534 } |