Mercurial > pidgin.yaz
changeset 4784:b1365291f002
[gaim-migrate @ 5104]
This makes the whole get-icq-nick-on-add-buddy thing work correctly.
When I'm around Gaim... I can never think of anything to say
I can feel my heart beating
My breathing gets shallow
I'm afraid to look her in the eyes
Then she puts her hand on my arm
And I stop breathing
And I look up
And I remember why
Hmm, are we still talking about Gaim?
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 15 Mar 2003 01:07:08 +0000 |
parents | 66be56dc86cb |
children | 1e28e7d802a1 |
files | src/protocols/oscar/icq.c |
diffstat | 1 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/oscar/icq.c Sat Mar 15 00:18:54 2003 +0000 +++ b/src/protocols/oscar/icq.c Sat Mar 15 01:07:08 2003 +0000 @@ -195,6 +195,7 @@ aim_frame_t *fr; aim_snacid_t snacid; int bslen; + struct aim_icq_info *info; if (!uin || uin[0] < '0' || uin[0] > '9') return -EINVAL; @@ -223,6 +224,13 @@ aim_tx_enqueue(sess, fr); + /* Keep track of this request and the ICQ number and request ID */ + info = (struct aim_icq_info *)calloc(1, sizeof(struct aim_icq_info)); + info->reqid = snacid; + info->uin = atoi(uin); + info->next = sess->icq_info; + sess->icq_info = info; + return 0; } @@ -509,7 +517,7 @@ } /* End switch statement */ if (!(snac->flags & 0x0001)) { - if (cmd != 0x104) + if (subtype != 0x0104) if ((userfunc = aim_callhandler(sess, rx->conn, AIM_CB_FAM_ICQ, AIM_CB_ICQ_INFO))) ret = userfunc(sess, rx, info);