Mercurial > pidgin.yaz
comparison libfaim/aim_chat.c @ 445:e4c34ca88d9b
[gaim-migrate @ 455]
Hehehehehe
Libfaim got updated, gaim got updated. btw, gaim/faim can't sign in yet,
don't ask me why. it's not my fault.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Thu, 29 Jun 2000 20:40:28 +0000 |
parents | 9d258a0aa560 |
children | 6e318907bcce |
comparison
equal
deleted
inserted
replaced
444:e7885c54ed2f | 445:e4c34ca88d9b |
---|---|
53 struct command_tx_struct *newpacket; | 53 struct command_tx_struct *newpacket; |
54 | 54 |
55 if (!sess || !conn || !msg) | 55 if (!sess || !conn || !msg) |
56 return 0; | 56 return 0; |
57 | 57 |
58 if (!(newpacket = aim_tx_new(0x0002, conn, 1152))) | 58 if (!(newpacket = aim_tx_new(AIM_FRAMETYPE_OSCAR, 0x0002, conn, 1152))) |
59 return -1; | 59 return -1; |
60 | 60 |
61 newpacket->lock = 1; /* lock struct */ | 61 newpacket->lock = 1; /* lock struct */ |
62 | 62 |
63 curbyte = 0; | 63 curbyte = 0; |
128 int i; | 128 int i; |
129 | 129 |
130 if (!sess || !conn || !roomname) | 130 if (!sess || !conn || !roomname) |
131 return 0; | 131 return 0; |
132 | 132 |
133 if (!(newpacket = aim_tx_new(0x0002, conn, 10+9+strlen(roomname)+2))) | 133 if (!(newpacket = aim_tx_new(AIM_FRAMETYPE_OSCAR, 0x0002, conn, 10+9+strlen(roomname)+2))) |
134 return -1; | 134 return -1; |
135 | 135 |
136 newpacket->lock = 1; | 136 newpacket->lock = 1; |
137 | 137 |
138 i = aim_putsnac(newpacket->data, 0x0001, 0x0004, 0x0000, sess->snac_nextid); | 138 i = aim_putsnac(newpacket->data, 0x0001, 0x0004, 0x0000, sess->snac_nextid); |
511 struct aim_conn_t *conn) | 511 struct aim_conn_t *conn) |
512 { | 512 { |
513 struct command_tx_struct *newpacket; | 513 struct command_tx_struct *newpacket; |
514 int i; | 514 int i; |
515 | 515 |
516 if (!(newpacket = aim_tx_new(0x0002, conn, 0x20))) | 516 if (!(newpacket = aim_tx_new(AIM_FRAMETYPE_OSCAR, 0x0002, conn, 0x20))) |
517 return -1; | 517 return -1; |
518 | 518 |
519 newpacket->lock = 1; | 519 newpacket->lock = 1; |
520 | 520 |
521 i = aim_putsnac(newpacket->data, 0x0001, 0x0002, 0x0000, sess->snac_nextid); | 521 i = aim_putsnac(newpacket->data, 0x0001, 0x0002, 0x0000, sess->snac_nextid); |
565 int i,curbyte=0; | 565 int i,curbyte=0; |
566 | 566 |
567 if (!sess || !conn || !sn || !msg || !roomname) | 567 if (!sess || !conn || !sn || !msg || !roomname) |
568 return 0; | 568 return 0; |
569 | 569 |
570 if (!(newpacket = aim_tx_new(0x0002, conn, 1152+strlen(sn)+strlen(roomname)+strlen(msg)))) | 570 if (!(newpacket = aim_tx_new(AIM_FRAMETYPE_OSCAR, 0x0002, conn, 1152+strlen(sn)+strlen(roomname)+strlen(msg)))) |
571 return -1; | 571 return -1; |
572 | 572 |
573 newpacket->lock = 1; | 573 newpacket->lock = 1; |
574 | 574 |
575 curbyte = aim_putsnac(newpacket->data, 0x0004, 0x0006, 0x0000, sess->snac_nextid); | 575 curbyte = aim_putsnac(newpacket->data, 0x0004, 0x0006, 0x0000, sess->snac_nextid); |