MXit: Set a default chatroom name for local display if there is no Local Alias configured. mxit-2.x.y

Fri, 12 Jul 2013 14:09:31 +0200

author
Andrew Victor <andrew.victor@mxit.com>
date
Fri, 12 Jul 2013 14:09:31 +0200
branch
mxit-2.x.y
changeset 34245
ecf326be93f0
parent 34244
f577eeb610cc
child 34507
979df20d7871

MXit: Set a default chatroom name for local display if there is no Local Alias configured.
The default chatroom name is Profile Nickname, and if not available then Local Alias.
But at re-connect time the chat-room is recreated by Pidgin before we have the
profile information from the server.

libpurple/protocols/mxit/multimx.c file | annotate | diff | comparison | revisions
--- a/libpurple/protocols/mxit/multimx.c	Fri Jul 12 09:20:08 2013 +0200
+++ b/libpurple/protocols/mxit/multimx.c	Fri Jul 12 14:09:31 2013 +0200
@@ -644,6 +644,9 @@
 	else
 		nickname = purple_account_get_alias(purple_connection_get_account(gc));		/* local alias */
 
+	if (!nickname)
+		nickname = _("You");
+
 	/* Display message in chat window */
 	serv_got_chat_in(gc, id, nickname, flags, message, time(NULL));
 

mercurial