changeset 31758:356adba49dae

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.
author Paul Aurich <paul@darkrain42.org>
date Sun, 06 Mar 2011 23:49:32 +0000
parents f178a7df417a
children 02b0fbc627c0
files libpurple/protocols/jabber/message.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/message.c	Sun Mar 06 23:03:47 2011 +0000
+++ b/libpurple/protocols/jabber/message.c	Sun Mar 06 23:49:32 2011 +0000
@@ -1140,6 +1140,12 @@
 	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);