comparison src/oscar.c @ 252:4a41f8323022

[gaim-migrate @ 262] Small changes. some things work better. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 22 May 2000 23:58:03 +0000
parents c5aa7bf99059
children 5b28ef2b550e
comparison
equal deleted inserted replaced
251:b1ff272bc495 252:4a41f8323022
467 flag1 = va_arg(ap, u_short); 467 flag1 = va_arg(ap, u_short);
468 flag2 = va_arg(ap, u_short); 468 flag2 = va_arg(ap, u_short);
469 va_end(ap); 469 va_end(ap);
470 470
471 serv_got_im(userinfo->sn, msg, icbmflags & AIM_IMFLAGS_AWAY); 471 serv_got_im(userinfo->sn, msg, icbmflags & AIM_IMFLAGS_AWAY);
472 } 472 } else if (channel == 2) {
473 /* FIXME : channel == 2 is RVOUS requests, including chat invitations */ 473 struct aim_userinfo_s *userinfo;
474 int rendtype = va_arg(ap, int);
475 if (rendtype == 0) {
476 char *msg, *encoding, *lang;
477 struct aim_chat_roominfo *roominfo;
478
479 userinfo = va_arg(ap, struct aim_userinfo_s *);
480 roominfo = va_arg(ap, struct aim_chat_roominfo *);
481 msg = va_arg(ap, char *);
482 encoding = va_arg(ap, char *);
483 lang = va_arg(ap, char *);
484 va_end(ap);
485
486 serv_got_chat_invite(roominfo->name,
487 roominfo->instance,
488 userinfo->sn,
489 msg);
490 } else if (rendtype == 1) {
491 /* FIXME : voice chat */
492 }
493 }
474 494
475 return 1; 495 return 1;
476 } 496 }
477 497
478 int gaim_parse_misses(struct aim_session_t *sess, 498 int gaim_parse_misses(struct aim_session_t *sess,
524 prof = va_arg(ap, char *); 544 prof = va_arg(ap, char *);
525 infotype = va_arg(ap, u_short); 545 infotype = va_arg(ap, u_short);
526 va_end(ap); 546 va_end(ap);
527 547
528 if (prof == NULL || !strlen(prof)) { 548 if (prof == NULL || !strlen(prof)) {
529 do_error_dialog("User has no away message.", "Gaim - Away Msg"); 549 do_error_dialog("User has no info/away message.",
550 "Gaim - User Info");
530 return 1; 551 return 1;
531 } 552 }
532 553
533 snprintf(buf, sizeof buf, "Username : <B>%s</B>\n<BR>" 554 snprintf(buf, sizeof buf, "Username : <B>%s</B>\n<BR>"
534 "Warning Level : <B>%d %%</B>\n<BR>" 555 "Warning Level : <B>%d %%</B>\n<BR>"