/pidgin/main: a3aac6ba27ad: MXit: We need to implement a "chat_i...
Andrew Victor
andrew.victor at mxit.com
Wed Jan 16 04:39:52 EST 2013
Changeset: a3aac6ba27ada7584af34eac00db4078ca0bcade
Author: Andrew Victor <andrew.victor at mxit.com>
Date: 2013-01-16 10:49 +0200
Branch: release-2.x.y
URL: http://hg.pidgin.im/pidgin/main/rev/a3aac6ba27ad
Description:
MXit: We need to implement a "chat_info_defaults" in the prpl.
This removes the error "GLib: g_hash_table_lookup: assertion `hash_table != NULL' failed" from the log
when creating a groupchat.
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
@@ -657,6 +657,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
@@ -729,7 +740,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