# HG changeset patch # User Ethan Blanton # Date 1095299513 0 # Node ID 0f5ad31051a02f37d71ba897f473d3d214f6c0d0 # Parent 40676ea6775720261fdd00f8efeca645157ee947 [gaim-migrate @ 10966] Another patch from Stu, and I have no idea what this does. Here's what he told me, maybe it makes sense to someone else: 20:45 <@nosnilmot> Paco-Paco: if someone sets a key for someone, don't ask them to set it again I assume that's some kind of foreign babble. committer: Tailor Script diff -r 40676ea67757 -r 0f5ad31051a0 src/protocols/silc/ops.c --- a/src/protocols/silc/ops.c Thu Sep 16 01:50:15 2004 +0000 +++ b/src/protocols/silc/ops.c Thu Sep 16 01:51:53 2004 +0000 @@ -935,7 +935,7 @@ SilcUInt32 idle, mode; SilcBuffer channels, user_modes; SilcClientEntry client_entry; - char *buf, tmp[1024], *tmp2; + char *buf, tmp[1024], *tmp2, *title; char *moodstr, *statusstr, *contactstr, *langstr, *devicestr, *tzstr, *geostr; GString *s; @@ -1082,8 +1082,9 @@ _("More..."), G_CALLBACK(silcgaim_whois_more)); else #endif - /* XXX this should use gaim_notify_userinfo, but it is unclear to me what should be passed for 'who' */ - gaim_notify_formatted(gc, NULL, _("Buddy Information"), NULL, buf, NULL, NULL); + title = g_strdup_printf(_("Info for %s"), client_entry->nickname); + gaim_notify_userinfo(gc, client_entry->nickname, title, _("Buddy Information"), NULL, buf, NULL, NULL); + g_free(title); g_free(buf); } break; @@ -1091,7 +1092,7 @@ case SILC_COMMAND_WHOWAS: { SilcClientEntry client_entry; - char *buf, *nickname, *realname, *username, *tmp; + char *buf, *nickname, *realname, *username, *tmp, *title; GString *s; if (!success) { @@ -1143,9 +1144,10 @@ silc_free(pk); } + title = g_strdup_printf(_("Info for %s"), client_entry->nickname); buf = g_string_free(s, FALSE); - /* XXX this should use gaim_notify_userinfo, but it is unclear to me what should be passed for 'who' */ - gaim_notify_formatted(gc, NULL, _("Buddy Information"), NULL, buf, NULL, NULL); + gaim_notify_userinfo(gc, client_entry->nickname, title, _("Buddy Information"), NULL, buf, NULL, NULL); + g_free(title); g_free(buf); } break;