comparison src/log.c @ 7541:e1d1b60d823b

[gaim-migrate @ 8154] "<AUTO-REPLY>" does get logged (when logging in text mode) committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Mon, 17 Nov 2003 20:03:45 +0000
parents 60a3721eed2a
children ebccd555323b
comparison
equal deleted inserted replaced
7540:60a3721eed2a 7541:e1d1b60d823b
563 } 563 }
564 564
565 strftime(date, sizeof(date), "%H:%M:%S", localtime(&time)); 565 strftime(date, sizeof(date), "%H:%M:%S", localtime(&time));
566 stripped = gaim_markup_strip_html(message); 566 stripped = gaim_markup_strip_html(message);
567 if (type & GAIM_MESSAGE_SEND || 567 if (type & GAIM_MESSAGE_SEND ||
568 type & GAIM_MESSAGE_RECV) 568 type & GAIM_MESSAGE_RECV) {
569 fprintf(log->logger_data, "(%s) %s: %s\n", date, from, stripped); 569 if (type & GAIM_MESSAGE_AUTO_RESP)
570 else if (type & GAIM_MESSAGE_SYSTEM) 570 fprintf(log->logger_data, _("(%s) %s <AUTO-REPLY>: %s\n"), date, from, stripped);
571 else
572 fprintf(log->logger_data, "(%s) %s: %s\n", date, from, stripped);
573 } else if (type & GAIM_MESSAGE_SYSTEM)
571 fprintf(log->logger_data, "(%s) %s\n", date, stripped); 574 fprintf(log->logger_data, "(%s) %s\n", date, stripped);
572 else if (type & GAIM_MESSAGE_AUTO_RESP)
573 fprintf(log->logger_data, _("(%s) %s <AUTO-REPLY>: %s\n"), date, from, stripped);
574 else if (type & GAIM_MESSAGE_NO_LOG) { 575 else if (type & GAIM_MESSAGE_NO_LOG) {
575 /* This shouldn't happen */ 576 /* This shouldn't happen */
576 g_free(stripped); 577 g_free(stripped);
577 return; 578 return;
578 } else if (type & GAIM_MESSAGE_WHISPER) 579 } else if (type & GAIM_MESSAGE_WHISPER)