Mercurial > pidgin.yaz
comparison src/protocols/oscar/service.c @ 11808:4b7645e1c02d
[gaim-migrate @ 14099]
Correctly restore oscar available messages at signon.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 25 Oct 2005 05:13:55 +0000 |
parents | 677a3862260f |
children | 2a1961c1a345 |
comparison
equal
deleted
inserted
replaced
11807:1f70f265cf27 | 11808:4b7645e1c02d |
---|---|
845 aim_snacid_t snacid; | 845 aim_snacid_t snacid; |
846 | 846 |
847 if (!sess || !(conn = aim_conn_findbygroup(sess, 0x0004))) | 847 if (!sess || !(conn = aim_conn_findbygroup(sess, 0x0004))) |
848 return -EINVAL; | 848 return -EINVAL; |
849 | 849 |
850 if (msg != NULL) { | 850 if ((msg != NULL) && *msg != '\0') { |
851 if (!(fr = aim_tx_new(sess, conn, AIM_FRAMETYPE_FLAP, 0x02, 10 + 4 + strlen(msg) + 8))) | 851 if (!(fr = aim_tx_new(sess, conn, AIM_FRAMETYPE_FLAP, 0x02, 10 + 4 + strlen(msg) + 8))) |
852 return -ENOMEM; | 852 return -ENOMEM; |
853 | 853 |
854 snacid = aim_cachesnac(sess, 0x0001, 0x001e, 0x0000, NULL, 0); | 854 snacid = aim_cachesnac(sess, 0x0001, 0x001e, 0x0000, NULL, 0); |
855 aim_putsnac(&fr->data, 0x0001, 0x001e, 0x0000, snacid); | 855 aim_putsnac(&fr->data, 0x0001, 0x001e, 0x0000, snacid); |