--- a/oldlogger/oldlogger.c Fri Sep 28 06:15:07 2007 -0400
+++ b/oldlogger/oldlogger.c Fri Sep 28 12:28:14 2007 -0400
@@ -293,8 +293,10 @@
written += fprintf(data->file, "(%s) %s: %s\n", date, from,
- } else if (type & PURPLE_MESSAGE_SYSTEM)
+ } else if ((type & PURPLE_MESSAGE_SYSTEM) || (type & PURPLE_MESSAGE_ERROR)) written += fprintf(data->file, "(%s) %s\n", date, stripped);
+ else if (type & PURPLE_MESSAGE_RAW) + written += fprintf(data->file, "%s\n", stripped); else if (type & PURPLE_MESSAGE_NO_LOG) {
/* This shouldn't happen */
@@ -393,6 +395,10 @@
strftime(date, sizeof(date), "%H:%M:%S", localtime(&time));
if (type & PURPLE_MESSAGE_SYSTEM)
written += fprintf(data->file, "<FONT COLOR=\"#000000\" sml=\"%s\">(%s) <B>%s</B></FONT><BR>\n", prpl, date, msg_fixed);
+ else if (type & PURPLE_MESSAGE_ERROR) + written += fprintf(data->file, "<FONT COLOR=\"#FF0000\" sml=\"%s\">(%s) <B>%s</B></FONT><BR>\n", prpl, date, msg_fixed); + else if (type & PURPLE_MESSAGE_RAW) + written += fprintf(data->file, "%s<BR>\n", msg_fixed); else if (type & PURPLE_MESSAGE_WHISPER)
written += fprintf(data->file, "<FONT COLOR=\"#6C2585\" sml=\"%s\">(%s) <B>%s:</B></FONT> %s<BR>\n",
prpl, date, from, msg_fixed);