changeset 25494:4ea0f3edd973

I thought I did this already, but anyway, a patch from Dimmuxx to stop the official client from showing an extra dash when you have an empty PSM. Fixes #8461. committer: Elliott Sales de Andrade <qulogic@pidgin.im>
author Daniel Lj <dimmuxx@yahoo.se>
date Thu, 19 Feb 2009 02:32:42 +0000
parents 2fe359bda5b7
children b93f3d152de6
files libpurple/protocols/msn/state.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/state.c	Thu Feb 19 02:25:49 2009 +0000
+++ b/libpurple/protocols/msn/state.c	Thu Feb 19 02:32:42 2009 +0000
@@ -189,12 +189,12 @@
 
 	purple_debug_info("msn", "msn get PSM\n");
 	payloadNode = xmlnode_from_str(xml_str, len);
-	if (!payloadNode){
+	if (!payloadNode) {
 		purple_debug_error("msn", "PSM XML parse Error!\n");
 		return NULL;
 	}
 	psmNode = xmlnode_get_child(payloadNode, "PSM");
-	if (psmNode == NULL){
+	if (psmNode == NULL) {
 		purple_debug_info("msn", "No PSM status Node");
 		xmlnode_free(payloadNode);
 		return NULL;
@@ -213,7 +213,7 @@
 	char *ret;
 	PurpleStatus *status = purple_presence_get_status(presence, "tune");
 	if (!status || !purple_status_is_active(status))
-		return g_strdup_printf("\\0Music\\00\\0\\0");
+		return NULL;
 
 	title = purple_status_get_attr_string(status, PURPLE_TUNE_TITLE);
 	game = purple_status_get_attr_string(status, "game");
@@ -234,7 +234,7 @@
 	else if (office && *office)
 		ret = g_strdup_printf("\\0Office\\01\\0Editing {0}\\0%s\\0", office);
 	else
-		ret = g_strdup_printf("\\0Music\\00\\0\\0");
+		ret = NULL;
 
 	return ret;
 }