Mercurial > pidgin
diff src/server.c @ 6787:faa491042c66
[gaim-migrate @ 7326]
the add_buddy prpl op now takes a group. It's horribly inconsistent with
the rest. This stuff all needs to be updated. Maybe I'll replace it in
0.70cvs.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sun, 07 Sep 2003 23:47:00 +0000 |
parents | 0c5637b5462e |
children | f098765ac919 |
line wrap: on
line diff
--- a/src/server.c Sun Sep 07 22:35:00 2003 +0000 +++ b/src/server.c Sun Sep 07 23:47:00 2003 +0000 @@ -157,7 +157,8 @@ if (prpl_info->options & OPT_PROTO_CORRECT_TIME) serv_add_buddy(gc, - gaim_account_get_username(gaim_connection_get_account(gc))); + gaim_account_get_username(gaim_connection_get_account(gc)), + NULL); update_keepalive(gc, TRUE); } @@ -448,7 +449,7 @@ prpl_info->change_passwd(g, orig, new); } -void serv_add_buddy(GaimConnection *g, const char *name) +void serv_add_buddy(GaimConnection *g, const char *name, GaimGroup *group) { GaimPluginProtocolInfo *prpl_info = NULL; @@ -456,7 +457,7 @@ prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(g->prpl); if (prpl_info && g_list_find(gaim_connections_get_all(), g) && prpl_info->add_buddy) - prpl_info->add_buddy(g, name); + prpl_info->add_buddy(g, name, group); } void serv_add_buddies(GaimConnection *g, GList *buddies) @@ -471,7 +472,7 @@ prpl_info->add_buddies(g, buddies); else if (prpl_info->add_buddy) { while (buddies) { - prpl_info->add_buddy(g, buddies->data); + prpl_info->add_buddy(g, buddies->data, NULL); buddies = buddies->next; } }