comparison src/oscar.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 0d4e80bdb96b
children 6d78b988b479
comparison
equal deleted inserted replaced
444:e7885c54ed2f 445:e4c34ca88d9b
540 540
541 serv_got_im(userinfo->sn, msg, icbmflags & AIM_IMFLAGS_AWAY); 541 serv_got_im(userinfo->sn, msg, icbmflags & AIM_IMFLAGS_AWAY);
542 } else if (channel == 2) { 542 } else if (channel == 2) {
543 struct aim_userinfo_s *userinfo; 543 struct aim_userinfo_s *userinfo;
544 int rendtype = va_arg(ap, int); 544 int rendtype = va_arg(ap, int);
545 if (rendtype == 0 || 545 if (rendtype & AIM_CAPS_CHAT) {
546 rendtype == AIM_RENDEZVOUS_CHAT_EX3 ||
547 rendtype == AIM_RENDEZVOUS_CHAT_EX4 ||
548 rendtype == AIM_RENDEZVOUS_CHAT_EX5) {
549 char *msg, *encoding, *lang; 546 char *msg, *encoding, *lang;
550 struct aim_chat_roominfo *roominfo; 547 struct aim_chat_roominfo *roominfo;
551 548
552 userinfo = va_arg(ap, struct aim_userinfo_s *); 549 userinfo = va_arg(ap, struct aim_userinfo_s *);
553 roominfo = va_arg(ap, struct aim_chat_roominfo *); 550 roominfo = va_arg(ap, struct aim_chat_roominfo *);
558 555
559 serv_got_chat_invite(roominfo->name, 556 serv_got_chat_invite(roominfo->name,
560 roominfo->instance, 557 roominfo->instance,
561 userinfo->sn, 558 userinfo->sn,
562 msg); 559 msg);
563 } else if (rendtype == AIM_RENDEZVOUS_FILETRANSFER) { 560 } else if (rendtype & AIM_CAPS_SENDFILE) {
564 /* libfaim won't tell us that we got this just yet */ 561 /* libfaim won't tell us that we got this just yet */
565 } else if (rendtype == AIM_RENDEZVOUS_FILETRANSFER_GET) { 562 } else if (rendtype & AIM_CAPS_GETFILE) {
566 /* nor will it tell us this. but it's still there */ 563 /* nor will it tell us this. but it's still there */
567 } else if (rendtype == AIM_RENDEZVOUS_VOICE) { 564 } else if (rendtype & AIM_CAPS_VOICE) {
568 /* this one libfaim tells us unuseful info about */ 565 /* this one libfaim tells us unuseful info about */
566 } else if (rendtype & AIM_CAPS_BUDDYICON) {
567 /* bah */
568 } else if (rendtype & AIM_CAPS_IMIMAGE) {
569 } else { 569 } else {
570 sprintf(debug_buff, "Unknown rendtype %d\n", rendtype); 570 sprintf(debug_buff, "Unknown rendtype %d\n", rendtype);
571 debug_print(debug_buff); 571 debug_print(debug_buff);
572 } 572 }
573 } 573 }
668 return 1; 668 return 1;
669 } 669 }
670 670
671 int gaim_chatnav_info(struct aim_session_t *sess, 671 int gaim_chatnav_info(struct aim_session_t *sess,
672 struct command_rx_struct *command, ...) { 672 struct command_rx_struct *command, ...) {
673 va_list ap = va_start(ap, command); 673 va_list ap;
674 u_short type = va_arg(ap, u_short); 674 u_short type;
675
676 va_start(ap, command);
677 type = va_arg(ap, u_short);
675 678
676 switch(type) { 679 switch(type) {
677 case 0x0002: { 680 case 0x0002: {
678 int maxrooms; 681 int maxrooms;
679 struct aim_chat_exchangeinfo *exchanges; 682 struct aim_chat_exchangeinfo *exchanges;