src/protocols/oscar/oscar.c

changeset 9797
b69f82378b7b
parent 9771
42bd06e5b1b3
child 9801
c061a7280591
equal deleted inserted replaced
9796:dd7499147bed 9797:b69f82378b7b
3818 splitmsg = g_strsplit(msg, "\r\n", 0); 3818 splitmsg = g_strsplit(msg, "\r\n", 0);
3819 dialogmsg = g_strdup_printf(_("<B>UIN:</B> %s<BR><B>Status:</B> %s<HR>%s"), who, statusmsg, g_strjoinv("<BR>", splitmsg)); 3819 dialogmsg = g_strdup_printf(_("<B>UIN:</B> %s<BR><B>Status:</B> %s<HR>%s"), who, statusmsg, g_strjoinv("<BR>", splitmsg));
3820 g_free(statusmsg); 3820 g_free(statusmsg);
3821 g_strfreev(splitmsg); 3821 g_strfreev(splitmsg);
3822 3822
3823 gaim_notify_formatted(gc, title, _("Buddy Information"), NULL, dialogmsg, NULL, NULL); 3823 gaim_notify_userinfo(gc, who, title, _("Buddy Information"), NULL, dialogmsg, NULL, NULL);
3824 3824
3825 g_free(title); 3825 g_free(title);
3826 g_free(dialogmsg); 3826 g_free(dialogmsg);
3827 } break; 3827 } break;
3828 3828
4039 } 4039 }
4040 4040
4041 tmp = gaim_str_sub_away_formatters(str->str, gaim_account_get_username(account)); 4041 tmp = gaim_str_sub_away_formatters(str->str, gaim_account_get_username(account));
4042 g_string_free(str, TRUE); 4042 g_string_free(str, TRUE);
4043 title = g_strdup_printf(_("Info for %s"), userinfo->sn); 4043 title = g_strdup_printf(_("Info for %s"), userinfo->sn);
4044 gaim_notify_formatted(gc, title, _("Buddy Information"), NULL, tmp, NULL, NULL); 4044 gaim_notify_userinfo(gc, userinfo->sn, title, _("Buddy Information"), NULL, tmp, NULL, NULL);
4045 g_free(title); 4045 g_free(title);
4046 g_free(tmp); 4046 g_free(tmp);
4047 4047
4048 return 1; 4048 return 1;
4049 } 4049 }
4934 if (buddy != NULL) 4934 if (buddy != NULL)
4935 alias = gaim_buddy_get_alias(buddy); 4935 alias = gaim_buddy_get_alias(buddy);
4936 else 4936 else
4937 alias = who; 4937 alias = who;
4938 primary = g_strdup_printf(_("ICQ Info for %s"), alias); 4938 primary = g_strdup_printf(_("ICQ Info for %s"), alias);
4939 gaim_notify_formatted(gc, NULL, primary, NULL, str->str, NULL, NULL); 4939 gaim_notify_userinfo(gc, buddy->name, NULL, primary, NULL, str->str, NULL, NULL);
4940 g_free(primary); 4940 g_free(primary);
4941 g_string_free(str, TRUE); 4941 g_string_free(str, TRUE);
4942 4942
4943 return 1; 4943 return 1;
4944 } 4944 }

mercurial