Mercurial > pidgin
comparison src/protocols/oscar/service.c @ 7141:af8ac078d4c2
[gaim-migrate @ 7708]
I guess I changed "everybuddy bug" to "ICQ Direct Connect" in the tooltips.
And then there's some other comment changes and stuff that were in my tree.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 04 Oct 2003 20:14:25 +0000 |
parents | e4a5085fb870 |
children | 6d3d8f11e765 |
comparison
equal
deleted
inserted
replaced
7140:48cc5d5d5a6c | 7141:af8ac078d4c2 |
---|---|
785 aim_snacid_t snacid; | 785 aim_snacid_t snacid; |
786 | 786 |
787 if (!sess || !(conn = aim_conn_findbygroup(sess, 0x0001))) | 787 if (!sess || !(conn = aim_conn_findbygroup(sess, 0x0001))) |
788 return -EINVAL; | 788 return -EINVAL; |
789 | 789 |
790 if (msg) { | 790 if (msg != NULL) { |
791 if (!(fr = aim_tx_new(sess, conn, AIM_FRAMETYPE_FLAP, 0x02, 10 + 4 + strlen(msg) + 8))) | 791 if (!(fr = aim_tx_new(sess, conn, AIM_FRAMETYPE_FLAP, 0x02, 10 + 4 + strlen(msg) + 8))) |
792 return -ENOMEM; | 792 return -ENOMEM; |
793 | 793 |
794 snacid = aim_cachesnac(sess, 0x0001, 0x001e, 0x0000, NULL, 0); | 794 snacid = aim_cachesnac(sess, 0x0001, 0x001e, 0x0000, NULL, 0); |
795 aim_putsnac(&fr->data, 0x0001, 0x001e, 0x0000, snacid); | 795 aim_putsnac(&fr->data, 0x0001, 0x001e, 0x0000, snacid); |
796 | 796 |
797 aimbs_put16(&fr->data, 0x001d); | 797 aimbs_put16(&fr->data, 0x001d); /* userinfo TLV type */ |
798 aimbs_put16(&fr->data, strlen(msg)+8); | 798 aimbs_put16(&fr->data, strlen(msg)+8); /* total length of userinfo TLV data */ |
799 aimbs_put16(&fr->data, 0x0002); | 799 aimbs_put16(&fr->data, 0x0002); |
800 aimbs_put8(&fr->data, 0x04); | 800 aimbs_put8(&fr->data, 0x04); |
801 aimbs_put8(&fr->data, strlen(msg)+4); | 801 aimbs_put8(&fr->data, strlen(msg)+4); |
802 aimbs_put16(&fr->data, strlen(msg)); | 802 aimbs_put16(&fr->data, strlen(msg)); |
803 aimbs_putraw(&fr->data, msg, strlen(msg)); | 803 aimbs_putraw(&fr->data, msg, strlen(msg)); |