diff src/protocols/sametime/sametime.c @ 12954:aba96d7cee74

[gaim-migrate @ 15307] Revert so that the status and message are together on the same line again. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Thu, 19 Jan 2006 20:33:19 +0000
parents 397dc3344563
children ec9b92104904
line wrap: on
line diff
--- a/src/protocols/sametime/sametime.c	Thu Jan 19 19:37:37 2006 +0000
+++ b/src/protocols/sametime/sametime.c	Thu Jan 19 20:33:19 2006 +0000
@@ -3180,8 +3180,8 @@
 
   GString *str;
   const char *message;
-  char *tmp = NULL;
   const char *status;
+  char *tmp;
 
   gc = b->account->gc;
   pd = gc->proto_data;
@@ -3193,12 +3193,11 @@
 
   if(message != NULL && gaim_utf8_strcasecmp(status, message)) {
     tmp = g_markup_escape_text(message, -1);
-  }
-
-  g_string_append_printf(str, _("\n<b>Status:</b> %s"), status);
-  if(tmp != NULL) {
-    g_string_append_printf(str, _("\n<b>Message:</b> %s"), tmp);
+    g_string_append_printf(str, _("\n<b>%s:</b> %s"), status, tmp);
     g_free(tmp);
+
+  } else {
+    g_string_append_printf(str, _("\n<b>Status:</b> %s"), status);
   }
 
   if(full) {