diff src/prefs.c @ 4227:a614423c648f

[gaim-migrate @ 4471] This is a patch from Nathan Walp that adds a "char server_alias[BUDDY_ALIAS_MAXLEN]" to struct buddy, and a preference option to show the server alias instead of the alias set by you. It shouldn't cause any problems. But then again, faceprint is a crazy patch writer, with an emphasis on crazy, if you know what I mean. Huh? Get it? "Crazy"? I kill me. But right after I kill Time Warner. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Tue, 07 Jan 2003 17:44:34 +0000
parents e9e55f0a991c
children cc14954cc399
line wrap: on
line diff
--- a/src/prefs.c	Tue Jan 07 16:18:08 2003 +0000
+++ b/src/prefs.c	Tue Jan 07 17:44:34 2003 +0000
@@ -193,6 +193,8 @@
 	/* This really shouldn't be in preferences at all */
 	debugbutton = gaim_button(_("Show _debug window"), &misc_options, OPT_MISC_DEBUG, vbox);
 
+	gaim_button(_("D_isplay remote nicknames if no alias is set"), &misc_options, OPT_MISC_USE_SERVER_ALIAS, vbox);
+
 
 	gtk_widget_show_all(ret);
 	return ret;
@@ -1645,6 +1647,11 @@
 
 	if (option == OPT_MISC_DEBUG)
 		show_debug();
+	else if(option == OPT_MISC_USE_SERVER_ALIAS) {
+		redo_buddy_list();
+		build_edit_tree();
+		set_convo_titles();
+	}
 }
 
 static void set_logging_option(GtkWidget *w, int option)