/pidgin/main: f577eeb610cc: MXit: When re-connecting, Pidgin aut...

Andrew Victor andrew.victor at mxit.com
Fri Jul 12 03:20:37 EDT 2013


Changeset: f577eeb610cc2e0ea2223d47d8a2b3c9914db6cd
Author:	 Andrew Victor <andrew.victor at mxit.com>
Date:	 2013-07-12 09:20 +0200
Branch:	 mxit-2.x.y
URL: https://hg.pidgin.im/pidgin/main/rev/f577eeb610cc

Description:

MXit: When re-connecting, Pidgin automatically calls join_chat for all open chat windows.
Since ths room-name is not set at this stage, this causes MXit to create a group called "(null)".
The MXit server will already re-join you to your active chatrooms, so Pidgin really does not have to.

diffstat:

 libpurple/protocols/mxit/multimx.c |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (14 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
@@ -466,6 +466,10 @@ void mxit_chat_join(PurpleConnection *gc
 	roomname = g_hash_table_lookup(components, "room");
 	multimx = find_room_by_alias(session, roomname);
 
+	/* no roomname - this occurs during a re-connect. */
+	if (!roomname)
+		return;
+
 	if (multimx != NULL) {
 		/* The room information already exists */
 



More information about the Commits mailing list