Mercurial > pidgin.yaz
changeset 10030:0f5ad31051a0
[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 <tailor@pidgin.im>
author | Ethan Blanton <elb@pidgin.im> |
---|---|
date | Thu, 16 Sep 2004 01:51:53 +0000 |
parents | 40676ea67757 |
children | 506ac0e66936 |
files | src/protocols/silc/ops.c |
diffstat | 1 files changed, 8 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- 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;