diff src/server.c @ 2787:feea7103a235

[gaim-migrate @ 2800] i wish i had a spine committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 21 Nov 2001 12:16:15 +0000
parents a0fd8f91e294
children 51999a36c0b1
line wrap: on
line diff
--- a/src/server.c	Wed Nov 21 01:52:41 2001 +0000
+++ b/src/server.c	Wed Nov 21 12:16:15 2001 +0000
@@ -665,34 +665,7 @@
 	/* server with what's in our record.  We want to */
 	/* store things how THEY want it... */
 	if (strcmp(name, b->name)) {
-		GList *cnv = conversations;
-		struct conversation *cv;
-
-		char *who = g_malloc(80);
-
-		strcpy(who, normalize(name));
-
-		while (cnv) {
-			cv = (struct conversation *)cnv->data;
-			if (!g_strcasecmp(who, normalize(cv->name))) {
-				if (im_options & OPT_IM_ONE_WINDOW) {
-					set_convo_tab_label(cv, b->name);
-				} else {
-					g_snprintf(cv->name, sizeof(cv->name), "%s", name);
-					if (find_log_info(name) || (logging_options & OPT_LOG_ALL))
-						 g_snprintf(who, 63, LOG_CONVERSATION_TITLE, name);
-					else
-						g_snprintf(who, 63, CONVERSATION_TITLE, name);
-					gtk_window_set_title(GTK_WINDOW(cv->window), who);
-					/* was g_free(buf), but break gives us that
-					 * and freeing twice is not good --Sumner */
-					break;
-				}
-			}
-			cnv = cnv->next;
-		}
-		g_free(who);
-		who = g_strdup(b->name);
+		char *who = g_strdup(b->name);
 		g_snprintf(b->name, sizeof(b->name), "%s", name);
 		handle_buddy_rename(b, who);
 		g_free(who);