pidgin/pidgin

Parents 149d7d8284cc
Children bef16ba1303d
In msimprpl, log unrecognized HTML tags received from the IM client, and
default to ignoring unknown tags instead of showing them.
--- a/libpurple/protocols/myspace/markup.c Tue Sep 18 00:47:51 2007 +0000
+++ b/libpurple/protocols/myspace/markup.c Tue Sep 18 00:57:39 2007 +0000
@@ -504,6 +504,7 @@
/* TODO: color (bg uses <body>), 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);
}
}
--- a/libpurple/protocols/myspace/myspace.h Tue Sep 18 00:47:51 2007 +0000
+++ b/libpurple/protocols/myspace/myspace.h Tue Sep 18 00:57:39 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