diff src/conversation.c @ 10349:655c48791b3c

[gaim-migrate @ 11563] Removed "Use remote alias when no alias is set" Defaulted to: Conversation titles: No Conversation messages: Yes Buddy list: Yes I barely use MSN, and I use ICQ even less, so if someone thinks of better defaults let me know. These seem to be the best for me. The trick is that on MSN, the server alias usually is less helpful than the screenname and on ICQ, it's more helpful. An alternative is to have the prpl specify which to use, but that's dumb. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Mon, 13 Dec 2004 00:52:07 +0000
parents 1034e77ff0ce
children db5e8c8b2abb
line wrap: on
line diff
--- a/src/conversation.c	Sun Dec 12 23:57:52 2004 +0000
+++ b/src/conversation.c	Mon Dec 13 00:52:07 2004 +0000
@@ -1134,7 +1134,7 @@
 	if (gaim_prefs_get_bool("/core/conversations/use_alias_for_title")) {
 		if(gaim_conversation_get_type(conv) == GAIM_CONV_IM) {
 			if(account && ((b = gaim_find_buddy(account, name)) != NULL))
-				text = gaim_buddy_get_contact_alias(b);
+				text = gaim_buddy_get_local_alias(b);
 		} else if(gaim_conversation_get_type(conv) == GAIM_CONV_CHAT) {
 			if(account && ((chat = gaim_blist_find_chat(account, name)) != NULL))
 				text = chat->alias;
@@ -2734,14 +2734,6 @@
 update_titles_pref_cb(const char *name, GaimPrefType type,
 					  gpointer value, gpointer data)
 {
-	/*
-	 * If the use_server_alias option was changed, and use_alias_for_title
-	 * is false, then we don't have to do anything here.
-	 */
-	if (!strcmp(name, "/core/buddies/use_server_alias") &&
-		!gaim_prefs_get_bool("/core/conversations/use_alias_for_title"))
-		return;
-
 	gaim_conversation_foreach(gaim_conversation_autoset_title);
 }
 
@@ -2789,9 +2781,6 @@
 	/* Connect callbacks for changed preferences */
 	gaim_prefs_connect_callback(handle, "/core/conversations/use_alias_for_title",
 			update_titles_pref_cb, NULL);
-	gaim_prefs_connect_callback(handle, "/core/buddies/use_server_alias",
-			update_titles_pref_cb, NULL);
-
 
 	/**********************************************************************
 	 * Register signals