comparison src/protocols/silc/ops.c @ 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 fb08a0973b3e
children 30e052ebb5ae
comparison
equal deleted inserted replaced
10029:40676ea67757 10030:0f5ad31051a0
933 case SILC_COMMAND_WHOIS: 933 case SILC_COMMAND_WHOIS:
934 { 934 {
935 SilcUInt32 idle, mode; 935 SilcUInt32 idle, mode;
936 SilcBuffer channels, user_modes; 936 SilcBuffer channels, user_modes;
937 SilcClientEntry client_entry; 937 SilcClientEntry client_entry;
938 char *buf, tmp[1024], *tmp2; 938 char *buf, tmp[1024], *tmp2, *title;
939 char *moodstr, *statusstr, *contactstr, *langstr, *devicestr, *tzstr, *geostr; 939 char *moodstr, *statusstr, *contactstr, *langstr, *devicestr, *tzstr, *geostr;
940 GString *s; 940 GString *s;
941 941
942 if (!success) { 942 if (!success) {
943 gaim_notify_error(gc, _("User Information"), 943 gaim_notify_error(gc, _("User Information"),
1080 buf, 1, client_entry, 2, 1080 buf, 1, client_entry, 2,
1081 _("OK"), G_CALLBACK(silcgaim_whois_more), 1081 _("OK"), G_CALLBACK(silcgaim_whois_more),
1082 _("More..."), G_CALLBACK(silcgaim_whois_more)); 1082 _("More..."), G_CALLBACK(silcgaim_whois_more));
1083 else 1083 else
1084 #endif 1084 #endif
1085 /* XXX this should use gaim_notify_userinfo, but it is unclear to me what should be passed for 'who' */ 1085 title = g_strdup_printf(_("Info for %s"), client_entry->nickname);
1086 gaim_notify_formatted(gc, NULL, _("Buddy Information"), NULL, buf, NULL, NULL); 1086 gaim_notify_userinfo(gc, client_entry->nickname, title, _("Buddy Information"), NULL, buf, NULL, NULL);
1087 g_free(title);
1087 g_free(buf); 1088 g_free(buf);
1088 } 1089 }
1089 break; 1090 break;
1090 1091
1091 case SILC_COMMAND_WHOWAS: 1092 case SILC_COMMAND_WHOWAS:
1092 { 1093 {
1093 SilcClientEntry client_entry; 1094 SilcClientEntry client_entry;
1094 char *buf, *nickname, *realname, *username, *tmp; 1095 char *buf, *nickname, *realname, *username, *tmp, *title;
1095 GString *s; 1096 GString *s;
1096 1097
1097 if (!success) { 1098 if (!success) {
1098 gaim_notify_error(gc, _("User Information"), 1099 gaim_notify_error(gc, _("User Information"),
1099 _("Cannot get user information"), 1100 _("Cannot get user information"),
1141 silc_free(fingerprint); 1142 silc_free(fingerprint);
1142 silc_free(babbleprint); 1143 silc_free(babbleprint);
1143 silc_free(pk); 1144 silc_free(pk);
1144 } 1145 }
1145 1146
1147 title = g_strdup_printf(_("Info for %s"), client_entry->nickname);
1146 buf = g_string_free(s, FALSE); 1148 buf = g_string_free(s, FALSE);
1147 /* XXX this should use gaim_notify_userinfo, but it is unclear to me what should be passed for 'who' */ 1149 gaim_notify_userinfo(gc, client_entry->nickname, title, _("Buddy Information"), NULL, buf, NULL, NULL);
1148 gaim_notify_formatted(gc, NULL, _("Buddy Information"), NULL, buf, NULL, NULL); 1150 g_free(title);
1149 g_free(buf); 1151 g_free(buf);
1150 } 1152 }
1151 break; 1153 break;
1152 1154
1153 case SILC_COMMAND_DETACH: 1155 case SILC_COMMAND_DETACH: