comparison src/protocols/yahoo/yahoo.c @ 5436:ad445074d239

[gaim-migrate @ 5818] Another big commit. Ugh. I need a very smart regexp. Core/UI split do_error_dialog(), and soon the mail dialogs! Yay! This should work without problems at all, but standard disclaimer.. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sun, 18 May 2003 19:59:02 +0000
parents fc0441fbf159
children 3e8487580024
comparison
equal deleted inserted replaced
5435:a2f26666de42 5436:ad445074d239
444 serv_got_update(gc, name, 1, 0, 0, 0, (state << 2) | UC_UNAVAILABLE | gamestate); 444 serv_got_update(gc, name, 1, 0, 0, 0, (state << 2) | UC_UNAVAILABLE | gamestate);
445 break; 445 break;
446 case 60: /* no clue */ 446 case 60: /* no clue */
447 break; 447 break;
448 case 16: /* Custom error message */ 448 case 16: /* Custom error message */
449 do_error_dialog(pair->value, NULL, GAIM_ERROR); 449 gaim_notify_error(gc, NULL, pair->value, NULL);
450 break; 450 break;
451 default: 451 default:
452 gaim_debug(GAIM_DEBUG_ERROR, "yahoo", 452 gaim_debug(GAIM_DEBUG_ERROR, "yahoo",
453 "Unknown status key %d\n", pair->key); 453 "Unknown status key %d\n", pair->key);
454 break; 454 break;
599 msg[j++] = m[i]; 599 msg[j++] = m[i];
600 } 600 }
601 msg[j] = 0; 601 msg[j] = 0;
602 serv_got_im(gc, from, g_strdup(msg), 0, tm, -1); 602 serv_got_im(gc, from, g_strdup(msg), 0, tm, -1);
603 } else if (pkt->status == 2) { 603 } else if (pkt->status == 2) {
604 do_error_dialog(_("Your Yahoo! message did not get sent."), NULL, GAIM_ERROR); 604 gaim_notify_error(gc, NULL,
605 _("Your Yahoo! message did not get sent."), NULL);
605 } 606 }
606 } 607 }
607 608
608 609
609 static void yahoo_process_contact(struct gaim_connection *gc, struct yahoo_packet *pkt) 610 static void yahoo_process_contact(struct gaim_connection *gc, struct yahoo_packet *pkt)