Mercurial > pidgin
comparison src/protocols/toc/toc.c @ 11643:eb14bbcf7249
[gaim-migrate @ 13920]
sf patch #1293063, from John Bailey
Move and rename some functions from server.c to the account API.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Wed, 12 Oct 2005 02:47:31 +0000 |
parents | 90be432e8385 |
children | fa742ad8068c |
comparison
equal
deleted
inserted
replaced
11642:58bc500cf226 | 11643:eb14bbcf7249 |
---|---|
640 } | 640 } |
641 } while ((c = strtok(NULL, "\n"))); | 641 } while ((c = strtok(NULL, "\n"))); |
642 | 642 |
643 if (account->gc) { | 643 if (account->gc) { |
644 if (buddies != NULL) { | 644 if (buddies != NULL) { |
645 serv_add_buddies(account->gc, buddies); | 645 gaim_account_add_buddies(account, buddies); |
646 g_list_free(buddies); | 646 g_list_free(buddies); |
647 } | 647 } |
648 serv_set_permit_deny(account->gc); | 648 serv_set_permit_deny(account->gc); |
649 } | 649 } |
650 g_list_free(buddies); | 650 g_list_free(buddies); |
739 * the server thinks I signed on. | 739 * the server thinks I signed on. |
740 */ | 740 */ |
741 buddy = gaim_buddy_new(account, username, NULL); | 741 buddy = gaim_buddy_new(account, username, NULL); |
742 /* XXX - Pick a group to add to */ | 742 /* XXX - Pick a group to add to */ |
743 /* gaim_blist_add(buddy, NULL, g, NULL); */ | 743 /* gaim_blist_add(buddy, NULL, g, NULL); */ |
744 serv_add_buddy(gc, buddy); | 744 gaim_account_add_buddy(gc, buddy); |
745 | 745 |
746 /* Client sends TOC toc_init_done message */ | 746 /* Client sends TOC toc_init_done message */ |
747 gaim_debug(GAIM_DEBUG_INFO, "toc", | 747 gaim_debug(GAIM_DEBUG_INFO, "toc", |
748 "Client sends TOC toc_init_done message\n"); | 748 "Client sends TOC toc_init_done message\n"); |
749 g_snprintf(snd, sizeof snd, "toc_init_done"); | 749 g_snprintf(snd, sizeof snd, "toc_init_done"); |