diff 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
line wrap: on
line diff
--- 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;
 }