# HG changeset patch # User Mark Doliner # Date 1063682324 0 # Node ID 59f6d0b1bdbeb7f1f7a19c470c9a87b9b1defd75 # Parent a14200b24371fdc5308caee079ec76bbbc2f6abb [gaim-migrate @ 7402] A patch from Nickolai Zeldovich: [ 779772 ] Display IP addresses for ICQ users in the mouse over http://sourceforge.net/tracker/index.php?func=detail&aid=779772&group_id=235&atid=300235 I'm pretty sure you can only see someone's IP address if they have you in their buddy list. I'm not positive though. committer: Tailor Script diff -r a14200b24371 -r 59f6d0b1bdbe src/protocols/oscar/oscar.c --- a/src/protocols/oscar/oscar.c Tue Sep 16 02:39:52 2003 +0000 +++ b/src/protocols/oscar/oscar.c Tue Sep 16 03:18:44 2003 +0000 @@ -155,6 +155,7 @@ int caps; gboolean typingnot; gchar *availmsg; + fu32_t ipaddr; unsigned long ico_me_len; unsigned long ico_me_csum; @@ -1817,6 +1818,9 @@ bi->caps = caps; bi->typingnot = FALSE; bi->ico_informed = FALSE; + bi->ipaddr = info->icqinfo.ipaddr; + + /* Available message stuff */ free(bi->availmsg); if (info->availmsg) if (info->availmsg_encoding) { @@ -5445,6 +5449,18 @@ free(tmp); free(tstr); + if (bi->ipaddr) { + char *tstr = g_strdup_printf("%hhd.%hhd.%hhd.%hhd", + (bi->ipaddr & 0xff000000) >> 24, + (bi->ipaddr & 0x00ff0000) >> 16, + (bi->ipaddr & 0x0000ff00) >> 8, + (bi->ipaddr & 0x000000ff)); + tmp = yay; + yay = g_strconcat(tmp, _("IP Address: "), tstr, "\n", NULL); + free(tmp); + free(tstr); + } + if (bi->caps) { char *caps = caps_string(bi->caps); tmp = yay;