Mercurial > pidgin.yaz
changeset 6857:59f6d0b1bdbe
[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 <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 16 Sep 2003 03:18:44 +0000 |
parents | a14200b24371 |
children | 885c6528843b |
files | src/protocols/oscar/oscar.c |
diffstat | 1 files changed, 16 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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, _("<b>IP Address:</b> "), tstr, "\n", NULL); + free(tmp); + free(tstr); + } + if (bi->caps) { char *caps = caps_string(bi->caps); tmp = yay;