# HG changeset patch # User Mark Doliner # Date 1047690428 0 # Node ID b1365291f002acd8b06eeff682290c000cb08b10 # Parent 66be56dc86cb7af359a38503b6284fbfd43d0c23 [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 diff -r 66be56dc86cb -r b1365291f002 src/protocols/oscar/icq.c --- 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);