# HG changeset patch # User Daniel Lj # Date 1235010762 0 # Node ID 4ea0f3edd973c8de928a8470b968bf04909df7d6 # Parent 2fe359bda5b74c8ce1d958375b8aa4c01d33c9ad 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 diff -r 2fe359bda5b7 -r 4ea0f3edd973 libpurple/protocols/msn/state.c --- 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; }