# HG changeset patch # User Jeffrey Connelly # Date 1190077726 0 # Node ID e86f136e880e5960bf834e5d5fef3700a07f885f # Parent 51457cf3d27bf8c9b4a401992b3fb5d1db5df705# Parent 4bb2ab77938ea5a3d223f19b7672874fbf4ad5a4 merge of 'abe5c21ff8b83812c256bc2b14a3f887ecc628b8' and 'bf8de57ed4c36f188044ea0684c201d0a1a67169' diff -r 51457cf3d27b -r e86f136e880e libpurple/protocols/myspace/markup.c --- a/libpurple/protocols/myspace/markup.c Tue Sep 18 01:02:55 2007 +0000 +++ b/libpurple/protocols/myspace/markup.c Tue Sep 18 01:08:46 2007 +0000 @@ -504,6 +504,7 @@ /* TODO: color (bg uses ), emoticons */ } else { + gchar *err; #ifdef MSIM_MARKUP_SHOW_UNKNOWN_TAGS *begin = g_strdup_printf("[%s]", root->name); @@ -512,6 +513,11 @@ *begin = g_strdup(""); *end = g_strdup(""); #endif + + err = g_strdup_printf("html_tag_to_msim_markup: unrecognized " + "HTML tag %s was sent by the IM client; ignoring"); + msim_unrecognized(NULL, NULL, err); + g_free(err); } } diff -r 51457cf3d27b -r e86f136e880e libpurple/protocols/myspace/myspace.h --- a/libpurple/protocols/myspace/myspace.h Tue Sep 18 01:02:55 2007 +0000 +++ b/libpurple/protocols/myspace/myspace.h Tue Sep 18 01:08:46 2007 +0000 @@ -67,8 +67,9 @@ /*#define MSIM_DEBUG_LOGIN_CHALLENGE*/ /*#define MSIM_DEBUG_RXBUF */ -/* Encode unknown HTML tags in messages in [], instead of ignoring */ -#define MSIM_MARKUP_SHOW_UNKNOWN_TAGS +/* Encode unknown HTML tags from IM clients in messages as [tag], instead of + * ignoring. Useful for debugging */ +/*#define MSIM_MARKUP_SHOW_UNKNOWN_TAGS */ /* Define to cause init_plugin() to run some tests and print * the results to the Purple debug log, then exit. Useful to