# HG changeset patch # User Mark Doliner # Date 1086752433 0 # Node ID e67b8cd33c6c3b32d7d053b0c13c98a7ddcc28ed # Parent a9151be6fe1a047d02e3b29f88e10b14dbe96015 [gaim-migrate @ 10043] A patch from Tom Samstag to show "Info for somebody" in the buddy info results for AIM and ICQ. committer: Tailor Script diff -r a9151be6fe1a -r e67b8cd33c6c src/protocols/oscar/oscar.c --- a/src/protocols/oscar/oscar.c Wed Jun 09 01:54:59 2004 +0000 +++ b/src/protocols/oscar/oscar.c Wed Jun 09 03:40:33 2004 +0000 @@ -3792,18 +3792,21 @@ switch(reason) { case 0x0003: { /* Reply from an ICQ status message request */ - char *status_msg = oscar_icqstatus(state); - char *dialog_msg, **splitmsg; + char *title, *statusmsg, **splitmsg, *dialogmsg; + + title = g_strdup_printf(_("Info for %s"), who); /* Split at (carriage return/newline)'s, then rejoin later with BRs between. */ + statusmsg = oscar_icqstatus(state); splitmsg = g_strsplit(msg, "\r\n", 0); - - dialog_msg = g_strdup_printf(_("UIN: %s
Status: %s
%s"), who, status_msg, g_strjoinv("
", splitmsg)); - gaim_notify_formatted(gc, NULL, _("Buddy Information"), NULL, dialog_msg, NULL, NULL); - - g_free(status_msg); - g_free(dialog_msg); + dialogmsg = g_strdup_printf(_("UIN: %s
Status: %s
%s"), who, statusmsg, g_strjoinv("
", splitmsg)); + g_free(statusmsg); g_strfreev(splitmsg); + + gaim_notify_formatted(gc, title, _("Buddy Information"), NULL, dialogmsg, NULL, NULL); + + g_free(title); + g_free(dialogmsg); } break; default: { @@ -3965,7 +3968,7 @@ GaimConnection *gc = sess->aux_data; GaimAccount *account = gaim_connection_get_account(gc); GString *str; - gchar *tmp = NULL, *info_utf8 = NULL, *away_utf8 = NULL; + gchar *tmp = NULL, *info_utf8 = NULL, *away_utf8 = NULL, *title = NULL; va_list ap; aim_userinfo_t *userinfo; @@ -4015,7 +4018,9 @@ tmp = gaim_str_sub_away_formatters(str->str, gaim_account_get_username(account)); g_string_free(str, TRUE); - gaim_notify_formatted(gc, NULL, _("Buddy Information"), NULL, tmp, NULL, NULL); + title = g_strdup_printf(_("Info for %s"), userinfo->sn); + gaim_notify_formatted(gc, title, _("Buddy Information"), NULL, tmp, NULL, NULL); + g_free(title); g_free(tmp); return 1;