# HG changeset patch # User Richard Laager # Date 1137699457 0 # Node ID 397dc33445635da2e27a6461b4023407a388b798 # Parent 30d6ebea36e20164673cd47a26e1dee0ab94ff6e [gaim-migrate @ 15306] I don't use Sametime, so I don't know if this is correct, but I'm hoping to bring the tooltip a little more in line with the other protocols. committer: Tailor Script diff -r 30d6ebea36e2 -r 397dc3344563 src/protocols/sametime/sametime.c --- a/src/protocols/sametime/sametime.c Thu Jan 19 18:39:10 2006 +0000 +++ b/src/protocols/sametime/sametime.c Thu Jan 19 19:37:37 2006 +0000 @@ -3179,28 +3179,33 @@ struct mwAwareIdBlock idb = { mwAware_USER, b->name, NULL }; GString *str; - const char *tmp; + const char *message; + char *tmp = NULL; + const char *status; gc = b->account->gc; pd = gc->proto_data; str = g_string_new(NULL); - tmp = mwServiceAware_getText(pd->srvc_aware, &idb); - if(tmp) { - tmp = g_markup_escape_text(tmp, -1); - g_string_append_printf(str, _("\n%s: %s"), status_text(b), tmp); - g_free((char *) tmp); - - } else { - g_string_append_printf(str, _("\nStatus: %s"), status_text(b)); + message = mwServiceAware_getText(pd->srvc_aware, &idb); + status = status_text(b); + + if(message != NULL && gaim_utf8_strcasecmp(status, message)) { + tmp = g_markup_escape_text(message, -1); + } + + g_string_append_printf(str, _("\nStatus: %s"), status); + if(tmp != NULL) { + g_string_append_printf(str, _("\nMessage: %s"), tmp); + g_free(tmp); } if(full) { tmp = user_supports_text(pd->srvc_aware, b->name); if(tmp) { - g_string_append_printf(str, _("\nSupports: %s"), tmp); - g_free((char *) tmp); + g_string_append_printf(str, _("\nSupports: %s"), tmp); + g_free(tmp); } if(buddy_is_external(b)) {