changeset 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
files src/log.c
diffstat 1 files changed, 6 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/log.c	Mon Nov 17 15:50:10 2003 +0000
+++ b/src/log.c	Mon Nov 17 20:03:45 2003 +0000
@@ -565,12 +565,13 @@
 	strftime(date, sizeof(date), "%H:%M:%S", localtime(&time));
 	stripped = gaim_markup_strip_html(message);
 	if (type & GAIM_MESSAGE_SEND ||
-	    type & GAIM_MESSAGE_RECV)
-		fprintf(log->logger_data, "(%s) %s: %s\n", date, from, stripped);	
-	else if (type & GAIM_MESSAGE_SYSTEM)
+	    type & GAIM_MESSAGE_RECV) {
+		if (type & GAIM_MESSAGE_AUTO_RESP)
+			fprintf(log->logger_data, _("(%s) %s <AUTO-REPLY>: %s\n"), date, from, stripped);
+		else
+			fprintf(log->logger_data, "(%s) %s: %s\n", date, from, stripped);	
+  	} else if (type & GAIM_MESSAGE_SYSTEM)
 		fprintf(log->logger_data, "(%s) %s\n", date, stripped);
-	else if (type & GAIM_MESSAGE_AUTO_RESP)
-		fprintf(log->logger_data, _("(%s) %s <AUTO-REPLY>: %s\n"), date, from, stripped);
 	else if (type & GAIM_MESSAGE_NO_LOG) {
 		/* This shouldn't happen */
 		g_free(stripped);