Mercurial > pidgin
comparison src/server.c @ 6885:66dd420d3d23
[gaim-migrate @ 7431]
Add support for removing groups in protocols. Currently, only MSN supports
it, but you cannot delete group 0 (aka, "The evil ~ group of DOOM!"), so
I'll add a GrossHack (TM) to not show that group if it's empty.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Thu, 18 Sep 2003 05:39:44 +0000 |
parents | f098765ac919 |
children | 083d1e4a9c78 |
comparison
equal
deleted
inserted
replaced
6884:5bd9f201b4bf | 6885:66dd420d3d23 |
---|---|
488 | 488 |
489 if (prpl_info && g_list_find(gaim_connections_get_all(), g) && prpl_info->remove_buddy) | 489 if (prpl_info && g_list_find(gaim_connections_get_all(), g) && prpl_info->remove_buddy) |
490 prpl_info->remove_buddy(g, name, group); | 490 prpl_info->remove_buddy(g, name, group); |
491 } | 491 } |
492 | 492 |
493 void | |
494 serv_remove_group(GaimConnection *gc, const char *name) | |
495 { | |
496 GaimPluginProtocolInfo *prpl_info = NULL; | |
497 | |
498 if (gc != NULL && gc->prpl != NULL) | |
499 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); | |
500 | |
501 if (prpl_info && g_list_find(gaim_connections_get_all(), gc) && | |
502 prpl_info->remove_group) | |
503 { | |
504 prpl_info->remove_group(gc, name); | |
505 } | |
506 } | |
507 | |
493 void serv_remove_buddies(GaimConnection *gc, GList *g, const char *group) | 508 void serv_remove_buddies(GaimConnection *gc, GList *g, const char *group) |
494 { | 509 { |
495 GaimPluginProtocolInfo *prpl_info = NULL; | 510 GaimPluginProtocolInfo *prpl_info = NULL; |
496 | 511 |
497 if (!g_list_find(gaim_connections_get_all(), gc)) | 512 if (!g_list_find(gaim_connections_get_all(), gc)) |