diff src/dialogs.c @ 6034:5a0060191a77

[gaim-migrate @ 6484] (16:32:42) javabsp: Who wants a patch? Fixes 744090 (16:33:15) javabsp: 0.64cvs bad confirmation removing chat room(from blist) (16:33:55) javabsp: It's showing something like "remove chat (null)" if the chat doesn't have an alias committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Sat, 05 Jul 2003 20:52:43 +0000
parents d2d5d1984b09
children 547ba881bc7e
line wrap: on
line diff
--- a/src/dialogs.c	Sat Jul 05 18:55:07 2003 +0000
+++ b/src/dialogs.c	Sat Jul 05 20:52:43 2003 +0000
@@ -457,12 +457,14 @@
 
 void show_confirm_del_chat(struct chat *chat)
 {
-	char *text = g_strdup_printf(_("You are about to remove the chat %s from your buddy list.  Do you want to continue?"), chat->alias);
+	const char *name = gaim_chat_get_display_name(chat);
+	char *text = g_strdup_printf(_("You are about to remove the chat %s from your buddy list.  Do you want to continue?"), name);
 
 	gaim_request_action(NULL, NULL, _("Remove Chat"), text, -1, chat, 2,
 						_("Remove Chat"), G_CALLBACK(do_remove_chat),
 						_("Cancel"), NULL);
 
+	g_free(name);
 	g_free(text);
 }