comparison src/protocols/oscar/service.c @ 5948:1bebb8345bde

[gaim-migrate @ 6392] I'm just going to commit these small changes before I start ripping stuff apart trying to get available messages to work. It'll be fun, you'll see. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Tue, 24 Jun 2003 03:49:11 +0000
parents a747e9e0e2cf
children e4a5085fb870
comparison
equal deleted inserted replaced
5947:ac4dd1d0ee39 5948:1bebb8345bde
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) {
791 if (!(fr = aim_tx_new(sess, conn, AIM_FRAMETYPE_FLAP, 0x02, 10 + 4 + strlen(msg) + 2))) 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);
798 aimbs_put16(&fr->data, strlen(msg)+2); 798 aimbs_put16(&fr->data, strlen(msg)+8);
799 aimbs_put16(&fr->data, 0x0002);
800 aimbs_put8(&fr->data, 0x04);
801 aimbs_put8(&fr->data, strlen(msg)+4);
802 aimbs_put16(&fr->data, strlen(msg));
799 aimbs_putraw(&fr->data, msg, strlen(msg)); 803 aimbs_putraw(&fr->data, msg, strlen(msg));
800 aimbs_put16(&fr->data, 0x0000); 804 aimbs_put16(&fr->data, 0x0000);
801 } else { 805 } else {
802 if (!(fr = aim_tx_new(sess, conn, AIM_FRAMETYPE_FLAP, 0x02, 10 + 4 + 8))) 806 if (!(fr = aim_tx_new(sess, conn, AIM_FRAMETYPE_FLAP, 0x02, 10 + 4 + 8)))
803 return -ENOMEM; 807 return -ENOMEM;