/pidgin/main: 741f27684265: Use alias when available for finch c...

Ethan Blanton elb at pidgin.im
Wed Mar 30 19:25:27 EDT 2016


Changeset: 741f27684265440b4f7d7ac1a2fc16bb4e4c42ae
Author:	 Ethan Blanton <elb at pidgin.im>
Date:	 2016-03-22 22:38 -0400
Branch:	 default
URL: https://hg.pidgin.im/pidgin/main/rev/741f27684265

Description:

Use alias when available for finch conversation buddies

diffstat:

 finch/gntconv.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff --git a/finch/gntconv.c b/finch/gntconv.c
--- a/finch/gntconv.c
+++ b/finch/gntconv.c
@@ -1035,7 +1035,7 @@ finch_write_conv(PurpleConversation *con
 		gchar *msg_text = g_strdup(purple_message_get_contents(msg));
 
 		if (purple_message_meify(msg_text, -1)) {
-			name = g_strdup_printf("*** %s", purple_message_get_author(msg));
+			name = g_strdup_printf("*** %s", purple_message_get_author_alias(msg));
 			if (!(flags & PURPLE_MESSAGE_SEND) &&
 					(flags & PURPLE_MESSAGE_NICK))
 				msgflags = gnt_color_pair(color_message_highlight);
@@ -1043,7 +1043,7 @@ finch_write_conv(PurpleConversation *con
 				msgflags = gnt_color_pair(color_message_action);
 			me = TRUE;
 		} else {
-			name =  g_strdup_printf("%s", purple_message_get_author(msg));
+			name =  g_strdup_printf("%s", purple_message_get_author_alias(msg));
 			if (flags & PURPLE_MESSAGE_SEND)
 				msgflags = gnt_color_pair(color_message_send);
 			else if (flags & PURPLE_MESSAGE_NICK)



More information about the Commits mailing list