Mercurial > pidgin
comparison src/protocols/msn/msn.c @ 2758:269fb9005d13
[gaim-migrate @ 2771]
Travis Farley (siege_2004)'s patch
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Mon, 19 Nov 2001 09:45:22 +0000 |
parents | 51fc8e5acd7a |
children | a0fd8f91e294 |
comparison
equal
deleted
inserted
replaced
2757:cdb326e5cd6f | 2758:269fb9005d13 |
---|---|
1751 | 1751 |
1752 static void msn_do_action(struct gaim_connection *gc, char *act) | 1752 static void msn_do_action(struct gaim_connection *gc, char *act) |
1753 { | 1753 { |
1754 if (!strcmp(act, "Set Friendly Name")) { | 1754 if (!strcmp(act, "Set Friendly Name")) { |
1755 do_prompt_dialog("Set Friendly Name:", gc->displayname, gc, msn_act_id, NULL); | 1755 do_prompt_dialog("Set Friendly Name:", gc->displayname, gc, msn_act_id, NULL); |
1756 } else if (!strcmp(act, "Reset All Friendly Names")) { | |
1757 GSList *g = gc->groups; | |
1758 while (g) { | |
1759 GSList *m = ((struct group *)g->data)->members; | |
1760 while (m) { | |
1761 struct buddy *b = m->data; | |
1762 if (b->present) | |
1763 msn_reset_friend(gc, b->name); | |
1764 m = m->next; | |
1765 } | |
1766 g = g->next; | |
1767 } | |
1756 } | 1768 } |
1757 } | 1769 } |
1758 | 1770 |
1759 static GList *msn_actions() | 1771 static GList *msn_actions() |
1760 { | 1772 { |
1761 GList *m = NULL; | 1773 GList *m = NULL; |
1762 | 1774 |
1763 m = g_list_append(m, "Set Friendly Name"); | 1775 m = g_list_append(m, "Set Friendly Name"); |
1776 m = g_list_append(m, "Reset All Friendly Names"); | |
1764 | 1777 |
1765 return m; | 1778 return m; |
1766 } | 1779 } |
1767 | 1780 |
1768 static void msn_convo_closed(struct gaim_connection *gc, char *who) | 1781 static void msn_convo_closed(struct gaim_connection *gc, char *who) |