diff libpurple/protocols/myspace/markup.c @ 19938:4bb2ab77938e

In msimprpl, log unrecognized HTML tags received from the IM client, and default to ignoring unknown tags instead of showing them.
author Jeffrey Connelly <jaconnel@calpoly.edu>
date Tue, 18 Sep 2007 00:57:39 +0000
parents 36ba89a2b7da
children e86f136e880e
line wrap: on
line diff
--- 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);
 	}
 }