IRCv3: Use the nick as the display name

Thu, 26 Sep 2024 14:23:45 -0500

author
Gary Kramlich <grim@reaperworld.com>
date
Thu, 26 Sep 2024 14:23:45 -0500
changeset 42975
c77cf8366ec6
parent 42974
5cd0ccba395e
child 42976
93f48383ac8c

IRCv3: Use the nick as the display name

Previously, if you used the same services account across nicks messages would
display as coming from the account id instead of the nick. This addresses that
by setting the display name of the contact info to the nick.

Testing Done:
Connected to an irc server and sent messages from multiple clients with different nicks that were using the same services account.

Reviewed at https://reviews.imfreedom.org/r/3533/

protocols/ircv3/purpleircv3connection.c file | annotate | diff | comparison | revisions
--- a/protocols/ircv3/purpleircv3connection.c	Thu Sep 26 14:20:52 2024 -0500
+++ b/protocols/ircv3/purpleircv3connection.c	Thu Sep 26 14:23:45 2024 -0500
@@ -942,6 +942,7 @@
 	}
 
 	purple_contact_info_set_sid(PURPLE_CONTACT_INFO(contact), source);
+	purple_contact_info_set_display_name(PURPLE_CONTACT_INFO(contact), nick);
 
 	g_free(nick);
 

mercurial