comparison libgaim/protocols/yahoo/yahoo.c @ 14300:b8697618399a

[gaim-migrate @ 16990] oops, that was stupid. I blame the juicey goodness. Now that we actually properly set the protocol, it seems to work. I can send and receive messages back and forth between gaim on yahoo and windows live messenger. Messages I send seem to end up with </font>'s in them. Status updates also seem to work to some degree committer: Tailor Script <tailor@pidgin.im>
author Tim Ringenbach <marv@pidgin.im>
date Wed, 23 Aug 2006 02:21:00 +0000
parents baf9f997746c
children d86ad60af057
comparison
equal deleted inserted replaced
14299:ea5193c23171 14300:b8697618399a
475 475
476 GaimAccount *account = gaim_connection_get_account(gc); 476 GaimAccount *account = gaim_connection_get_account(gc);
477 GHashTable *ht; 477 GHashTable *ht;
478 char *grp = NULL; 478 char *grp = NULL;
479 char *norm_bud = NULL; 479 char *norm_bud = NULL;
480 YahooFriend *f = NULL; /* It's your friends. They're going to want you to share your StarBursts. */
481 /* But what if you had no friends? */
482 GaimBuddy *b;
483 GaimGroup *g;
484
480 485
481 ht = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, (GDestroyNotify) g_slist_free); 486 ht = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, (GDestroyNotify) g_slist_free);
482 487
483 while (l) { 488 while (l) {
484 struct yahoo_pair *pair = l->data; 489 struct yahoo_pair *pair = l->data;
485 YahooFriend *f = NULL; /* It's your friends. They're going to want you to share your StarBursts. */
486 /* But what if you had no friends? */
487 GaimBuddy *b;
488 GaimGroup *g;
489
490
491 l = l->next; 490 l = l->next;
492 491
493 switch (pair->key) { 492 switch (pair->key) {
494 case 302: /* what is this? it's always 318 before a group, 319 before a s/n */ 493 case 302: /* what is this? it's always 318 before a group, 319 before a s/n */
495 case 300: /* ditto */ 494 case 300: /* ditto */
512 } 511 }
513 yahoo_do_group_check(account, ht, norm_bud, grp); 512 yahoo_do_group_check(account, ht, norm_bud, grp);
514 513
515 break; 514 break;
516 case 241: /* another protocol user */ 515 case 241: /* another protocol user */
517 if (f) 516 if (f) {
518 f->protocol = strtol(pair->value, NULL, 10); 517 f->protocol = strtol(pair->value, NULL, 10);
518 gaim_debug_info("yahoo", "Setting protocol to %d\n", f->protocol);
519 }
519 break; 520 break;
520 /* case 242: */ /* this seems related to 241 */ 521 /* case 242: */ /* this seems related to 241 */
521 /* break; */ 522 /* break; */
522 } 523 }
523 } 524 }