# HG changeset patch # User andrew.victor@mxit.com # Date 1313442505 0 # Node ID 437a45076bf38c7428bef2b2a4cb540742f7aacf # Parent a86d2f291923d730ad9360ccd65ea9be2019cdfe 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. diff -r a86d2f291923 -r 437a45076bf3 libpurple/protocols/mxit/mxit.c --- 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 */