Changeset 5ebff60 for protocols/oscar/buddylist.c
- Timestamp:
- 2015-02-20T22:50:54Z (9 years ago)
- Branches:
- master
- Children:
- 0b9daac, 3d45471, 7733b8c
- Parents:
- af359b4
- git-author:
- Indent <please@…> (19-02-15 05:47:20)
- git-committer:
- dequis <dx@…> (20-02-15 22:50:54)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/oscar/buddylist.c
raf359b4 r5ebff60 18 18 aim_extractuserinfo(sess, bs, &userinfo); 19 19 20 if ((userfunc = aim_callhandler(sess, rx->conn, snac->family, snac->subtype))) 20 if ((userfunc = aim_callhandler(sess, rx->conn, snac->family, snac->subtype))) { 21 21 return userfunc(sess, rx, &userinfo); 22 } 22 23 23 24 return 0; … … 31 32 int ret = 0; 32 33 33 /* 34 * TLVs follow 34 /* 35 * TLVs follow 35 36 */ 36 37 tlvlist = aim_readtlvchain(bs); … … 39 40 * TLV type 0x0001: Maximum number of buddies. 40 41 */ 41 if (aim_gettlv(tlvlist, 0x0001, 1)) 42 if (aim_gettlv(tlvlist, 0x0001, 1)) { 42 43 maxbuddies = aim_gettlv16(tlvlist, 0x0001, 1); 44 } 43 45 44 46 /* … … 48 50 * list. (This is called the "reverse list" by a certain 49 51 * other IM protocol.) 50 * 52 * 51 53 */ 52 if (aim_gettlv(tlvlist, 0x0002, 1)) 54 if (aim_gettlv(tlvlist, 0x0002, 1)) { 53 55 maxwatchers = aim_gettlv16(tlvlist, 0x0002, 1); 56 } 54 57 55 58 /* … … 59 62 */ 60 63 61 if ((userfunc = aim_callhandler(sess, rx->conn, snac->family, snac->subtype))) 64 if ((userfunc = aim_callhandler(sess, rx->conn, snac->family, snac->subtype))) { 62 65 ret = userfunc(sess, rx, maxbuddies, maxwatchers); 66 } 63 67 64 68 aim_freetlvchain(&tlvlist); 65 69 66 return ret; 70 return ret; 67 71 } 68 72 … … 70 74 { 71 75 72 if (snac->subtype == 0x0003) 76 if (snac->subtype == 0x0003) { 73 77 return rights(sess, mod, rx, snac, bs); 74 else if ((snac->subtype == 0x000b) || (snac->subtype == 0x000c))78 } else if ((snac->subtype == 0x000b) || (snac->subtype == 0x000c)) { 75 79 return buddychange(sess, mod, rx, snac, bs); 80 } 76 81 77 82 return 0;
Note: See TracChangeset
for help on using the changeset viewer.