/pidgin/main: 5d4db0eb9263: Backported from 3.0.0-devel:
Andrew Victor
andrew.victor at mxit.com
Sat Jul 28 18:48:58 EDT 2012
Changeset: 5d4db0eb9263277ae19485da29a588d517ae1dd3
Author: Andrew Victor <andrew.victor at mxit.com>
Date: 2012-07-28 22:32 +0200
Branch: mxit-2.x.y
URL: http://hg.pidgin.im/pidgin/main/rev/5d4db0eb9263
Description:
Backported from 3.0.0-devel:
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.
(Ref: http://pidgin.im/pipermail/commits/2011-August/019668.html)
diffstat:
libpurple/protocols/mxit/mxit.c | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diffs (30 lines):
diff --git a/libpurple/protocols/mxit/mxit.c b/libpurple/protocols/mxit/mxit.c
--- a/libpurple/protocols/mxit/mxit.c
+++ b/libpurple/protocols/mxit/mxit.c
@@ -652,6 +652,17 @@ static GList* mxit_blist_menu( PurpleBli
/*------------------------------------------------------------------------
+ * 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 );
+}
+
+
+/*------------------------------------------------------------------------
* Send a typing indicator event.
*
* @param gc The connection object
@@ -713,7 +724,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