pidgin: 99c20d86: jabber: Verbose printing of the exact me...

darkrain42 at pidgin.im darkrain42 at pidgin.im
Sun Mar 6 19:45:53 EST 2011


----------------------------------------------------------------------
Revision: 99c20d86165b24daadeb247977bbb6d4b80b94bf
Parent:   a81c5245795dd1fa56db435c6c4d98cd68c7acc9
Author:   darkrain42 at pidgin.im
Date:     03/06/11 18:49:32
Branch:   im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/99c20d86165b24daadeb247977bbb6d4b80b94bf

Changelog: 

jabber: Verbose printing of the exact message passed in to jabber_message_send_im.

I've had to do this twice now while tracking bugs in XHTML conversion.

Changes against parent a81c5245795dd1fa56db435c6c4d98cd68c7acc9

  patched  libpurple/protocols/jabber/message.c

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/message.c	24f730ba8a9c788d667c2f2d76106686e1dedd5f
+++ libpurple/protocols/jabber/message.c	56cb48ae5198a3d7b0180dd2a2facf6999ed83c5
@@ -1140,6 +1140,12 @@ int jabber_message_send_im(PurpleConnect
 	if(!who || !msg)
 		return 0;
 
+	if (purple_debug_is_verbose()) {
+		/* TODO: Maybe we need purple_debug_is_really_verbose? :) */
+		purple_debug_misc("jabber", "jabber_message_send_im: who='%s'\n"
+		                            "\tmsg='%s'\n", who, msg);
+	}
+
 	resource = jabber_get_resource(who);
 
 	jb = jabber_buddy_find(gc->proto_data, who, TRUE);


More information about the Commits mailing list