pidgin/ljfisher-ssl-client-auth

Parents b4729e4322f3
Children 766c92a94b04
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.
--- 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 */