# HG changeset patch # User Richard Laager # Date 1138596672 0 # Node ID 42c62476b61be145e482cf25b19ec3baf8897fea # Parent 78fa9502715b3c69bc3c6d4896a583eb7c22ff36 [gaim-migrate @ 15431] SF User pomp pointed out that if you open a conversation window with an AIM buddy who is offline and hit Ctrl-O, you'll end up with an empty log. An error message shows in the conversation window, but such messages are not logged. This change logs error messages as well as logging any messages with a type we don't recognize (and files a debug message, since that shouldn't happen). committer: Tailor Script diff -r 78fa9502715b -r 42c62476b61b src/log.c --- a/src/log.c Mon Jan 30 04:46:01 2006 +0000 +++ b/src/log.c Mon Jan 30 04:51:12 2006 +0000 @@ -961,6 +961,8 @@ } else { if (type & GAIM_MESSAGE_SYSTEM) written += fprintf(data->file, "(%s) %s
\n", date, msg_fixed); + else if (type & GAIM_MESSAGE_ERROR) + written += fprintf(data->file, "(%s) %s
\n", date, msg_fixed); else if (type & GAIM_MESSAGE_WHISPER) written += fprintf(data->file, "(%s) %s: %s
\n", date, from, msg_fixed); @@ -983,6 +985,10 @@ else written += fprintf(data->file, "(%s) %s: %s
\n", date, from, msg_fixed); + } else { + gaim_debug_error("log", "Unhandled message type."); + written += fprintf(data->file, "(%s) %s: %s
\n", + date, from, msg_fixed); } } g_free(date);