diff libpurple/protocols/sametime/sametime.c @ 32359:dc3ea8f6381a

Use purple_notify_user_info_add_pair_plaintext in some places where we were using purple_notify_user_info_add_pair (which expects an html string for the value). Feel free to double check these if you care about one of these protocols.
author Mark Doliner <mark@kingant.net>
date Sun, 21 Aug 2011 18:43:00 +0000
parents a5b556ac1de5
children 3322201b446f
line wrap: on
line diff
--- a/libpurple/protocols/sametime/sametime.c	Sun Aug 21 18:04:00 2011 +0000
+++ b/libpurple/protocols/sametime/sametime.c	Sun Aug 21 18:43:00 2011 +0000
@@ -3334,9 +3334,7 @@
   status = status_text(b);
 
   if(message != NULL && g_utf8_validate(message, -1, NULL) && purple_utf8_strcasecmp(status, message)) {
-    tmp = g_markup_escape_text(message, -1);
-	purple_notify_user_info_add_pair(user_info, status, tmp);
-    g_free(tmp);
+	purple_notify_user_info_add_pair_plaintext(user_info, status, message);
 
   } else {
 	purple_notify_user_info_add_pair(user_info, _("Status"), status);
@@ -3350,7 +3348,7 @@
     }
 
     if(buddy_is_external(b)) {
-	  purple_notify_user_info_add_pair(user_info, NULL, _("External User"));
+	  purple_notify_user_info_add_pair_plaintext(user_info, NULL, _("External User"));
     }
   }
 }