changeset 31891:437a45076bf3

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.
author andrew.victor@mxit.com
date Mon, 15 Aug 2011 21:08:25 +0000
parents a86d2f291923
children a330d1187fa7
files libpurple/protocols/mxit/mxit.c
diffstat 1 files changed, 13 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/mxit/mxit.c	Mon Aug 15 20:10:35 2011 +0000
+++ b/libpurple/protocols/mxit/mxit.c	Mon Aug 15 21:08:25 2011 +0000
@@ -654,6 +654,18 @@
 	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 @@
 	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 */