pidgin.mxit: c13c35c0: Need to implemnt the protocol prpl's cha...

andrew.victor at mxit.com andrew.victor at mxit.com
Mon Aug 15 17:10:43 EDT 2011


----------------------------------------------------------------------
Revision: c13c35c07888cc787731bd388eb99734c41f67ef
Parent:   0f231496a9afedb1d3af6df379a51d3006b76e7d
Author:   andrew.victor at mxit.com
Date:     08/15/11 17:08:25
Branch:   im.pidgin.pidgin.mxit
URL: http://d.pidgin.im/viewmtn/revision/info/c13c35c07888cc787731bd388eb99734c41f67ef

Changelog: 

Need to implemnt the protocol prpl's chat 'chat_info_defaults' callback.
Otherwise the following occurs in the logs:
   hash_table_lookup: assertion 'hash_table' != NULL 
when joining a group-chat.


Changes against parent 0f231496a9afedb1d3af6df379a51d3006b76e7d

  patched  libpurple/protocols/mxit/mxit.c

-------------- next part --------------
============================================================
--- libpurple/protocols/mxit/mxit.c	40de980694fc1b075d9672acffe6923e8fde039c
+++ libpurple/protocols/mxit/mxit.c	a8e9c977292f5253a04af7b1216950f955c0cf5a
@@ -654,6 +654,18 @@ static GList* mxit_blist_menu( PurpleBli
 	return m;
 }
 
+
+/*------------------------------------------------------------------------
+ * Return Chat-room default settings.
+ *
+ *  @return		Chat defaults list
+ */
+static GHashTable *mxit_chat_info_defaults(PurpleConnection *gc, const char *chat_name)
+{
+    return g_hash_table_new_full(g_str_hash, g_str_equal, NULL, g_free);
+}
+
+
 /*========================================================================================================================*/
 
 static PurplePluginProtocolInfo proto_info = {
@@ -675,7 +687,7 @@ static PurplePluginProtocolInfo proto_in
 	mxit_status_types,		/* status types				[roster.c] */
 	mxit_blist_menu,		/* blist_node_menu */
 	mxit_chat_info,			/* chat_info				[multimx.c] */
-	NULL,					/* chat_info_defaults */
+	mxit_chat_info_defaults,/* chat_info_defaults */
 	mxit_login,				/* login					[login.c] */
 	mxit_close,				/* close */
 	mxit_send_im,			/* send_im */


More information about the Commits mailing list