Mercurial > pidgin
comparison src/protocols/yahoo/yahoochat.c @ 12998:a2096c8978b2
[gaim-migrate @ 15351]
Bleeter updated yahoo chatroom joining to show better errors
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Mon, 23 Jan 2006 01:27:40 +0000 |
parents | 27c4145c6daa |
children | 68db2c40efb2 |
comparison
equal
deleted
inserted
replaced
12997:b4d2a8edba4a | 12998:a2096c8978b2 |
---|---|
353 char *room = NULL; | 353 char *room = NULL; |
354 char *topic = NULL; | 354 char *topic = NULL; |
355 char *someid, *someotherid, *somebase64orhashosomething, *somenegativenumber; | 355 char *someid, *someotherid, *somebase64orhashosomething, *somenegativenumber; |
356 | 356 |
357 if (pkt->status == -1) { | 357 if (pkt->status == -1) { |
358 gaim_notify_error(gc, NULL, _("Failed to join chat"), _("Maybe the room is full?")); | 358 /* We can't join */ |
359 struct yahoo_pair *pair = pkt->hash->data; | |
360 gchar const *failed_to_join = _("Failed to join chat"); | |
361 switch (atoi(pair->value)) { | |
362 case 0xFFFFFFFA: /* -6 */ | |
363 gaim_notify_error(gc, NULL, failed_to_join, _("Unknown room")); | |
364 break; | |
365 case 0xFFFFFFF1: /* -15 */ | |
366 gaim_notify_error(gc, NULL, failed_to_join, _("Maybe the room is full")); | |
367 break; | |
368 case 0xFFFFFFDD: /* -35 */ | |
369 gaim_notify_error(gc, NULL, failed_to_join, _("Not available")); | |
370 break; | |
371 default: | |
372 gaim_notify_error(gc, NULL, failed_to_join, | |
373 _("Unknown error. You may need to logout and wait five minutes before being able to rejoin a chatroom")); | |
374 } | |
359 return; | 375 return; |
360 } | 376 } |
361 | 377 |
362 for (l = pkt->hash; l; l = l->next) { | 378 for (l = pkt->hash; l; l = l->next) { |
363 struct yahoo_pair *pair = l->data; | 379 struct yahoo_pair *pair = l->data; |