diff libpurple/protocols/oscar/oscar.c @ 25143:a46e527d1473

Evan's original change to the Direct IM autoreplies is on im.pidgin.pidgin, so pluck those two changes (8b88c7e8 and f6ba6824) over from im.pidgin.adium. applied changes from 30c025a5facc491ee082435ffe5d2ccfec619678 through f6ba682452e5dda1db8721a71a4095dc665c7039
author Paul Aurich <paul@darkrain42.org>
date Mon, 23 Feb 2009 21:12:19 +0000
parents 8f544de62330
children 0bb35311dfe0 937d832f4d7f 25319f536d93
line wrap: on
line diff
--- a/libpurple/protocols/oscar/oscar.c	Mon Feb 23 20:12:35 2009 +0000
+++ b/libpurple/protocols/oscar/oscar.c	Mon Feb 23 21:12:19 2009 +0000
@@ -4421,7 +4421,7 @@
 	}
 	g_string_free(data, TRUE);
 
-	peer_odc_send_im(conn, msg->str, msg->len, charset, imflags);
+	peer_odc_send_im(conn, msg->str, msg->len, charset, (imflags & PURPLE_MESSAGE_AUTO_RESP));
 	g_string_free(msg, TRUE);
 }
 
@@ -4461,6 +4461,7 @@
 	if ((conn != NULL) && (conn->ready))
 	{
 		/* If we're directly connected, send a direct IM */
+		purple_debug_info("oscar", "Sending direct IM with flags %i", imflags);
 		purple_odc_send_im(conn, tmp1, imflags);
 	} else {
 		struct buddyinfo *bi;