# HG changeset patch
# User Eric Warmenhoven <eric@warmenhoven.org>
# Date 1006163122 0
# Node ID 269fb9005d13e182ba3a4e6721382b7c1cf89d80
# Parent  cdb326e5cd6f8f8dcc86540cbc792084282b6476
[gaim-migrate @ 2771]
Travis Farley (siege_2004)'s patch

committer: Tailor Script <tailor@pidgin.im>

diff -r cdb326e5cd6f -r 269fb9005d13 src/protocols/msn/msn.c
--- a/src/protocols/msn/msn.c	Mon Nov 19 09:43:40 2001 +0000
+++ b/src/protocols/msn/msn.c	Mon Nov 19 09:45:22 2001 +0000
@@ -1753,6 +1753,18 @@
 {
 	if (!strcmp(act, "Set Friendly Name")) {
 		do_prompt_dialog("Set Friendly Name:", gc->displayname, gc, msn_act_id, NULL);
+	} else if (!strcmp(act, "Reset All Friendly Names")) {
+		GSList *g = gc->groups;
+		while (g) {
+			GSList *m = ((struct group *)g->data)->members;
+			while (m) {
+				struct buddy *b = m->data;
+				if (b->present)
+					msn_reset_friend(gc, b->name);
+				m = m->next;
+			}
+			g = g->next;
+		}
 	}
 }
 
@@ -1761,6 +1773,7 @@
 	GList *m = NULL;
 
 	m = g_list_append(m, "Set Friendly Name");
+	m = g_list_append(m, "Reset All Friendly Names");
 
 	return m;
 }