/pidgin/main: ecf326be93f0: MXit: Set a default chatroom name fo...
Andrew Victor
andrew.victor at mxit.com
Fri Jul 12 08:10:53 EDT 2013
Changeset: ecf326be93f07c9a2984a0f3d234c012d303049a
Author: Andrew Victor <andrew.victor at mxit.com>
Date: 2013-07-12 14:09 +0200
Branch: mxit-2.x.y
URL: https://hg.pidgin.im/pidgin/main/rev/ecf326be93f0
Description:
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.
diffstat:
libpurple/protocols/mxit/multimx.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (13 lines):
diff --git a/libpurple/protocols/mxit/multimx.c b/libpurple/protocols/mxit/multimx.c
--- a/libpurple/protocols/mxit/multimx.c
+++ b/libpurple/protocols/mxit/multimx.c
@@ -644,6 +644,9 @@ int mxit_chat_send(PurpleConnection *gc,
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));
More information about the Commits
mailing list