/pidgin/main: 909bc3642565: MXit: Enable support for sending a r...
Andrew Victor
andrew.victor at mxit.com
Tue Jan 29 15:11:34 EST 2013
Changeset: 909bc36425650769af0e8537277f13672186c68e
Author: Andrew Victor <andrew.victor at mxit.com>
Date: 2013-01-29 22:11 +0200
Branch: default
URL: http://hg.pidgin.im/pidgin/main/rev/909bc3642565
Description:
MXit: Enable support for sending a rejection messages when denying an invite request.
diffstat:
libpurple/protocols/mxit/mxit.c | 2 +-
libpurple/protocols/mxit/roster.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diffs (24 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
@@ -669,7 +669,7 @@ static GHashTable *mxit_chat_info_defaul
static PurplePluginProtocolInfo proto_info = {
sizeof( PurplePluginProtocolInfo ), /* struct_size */
- OPT_PROTO_REGISTER_NOSCREENNAME | OPT_PROTO_UNIQUE_CHATNAME | OPT_PROTO_IM_IMAGE | OPT_PROTO_INVITE_MESSAGE, /* options */
+ OPT_PROTO_REGISTER_NOSCREENNAME | OPT_PROTO_UNIQUE_CHATNAME | OPT_PROTO_IM_IMAGE | OPT_PROTO_INVITE_MESSAGE | OPT_PROTO_AUTHORIZATION_DENIED_MESSAGE, /* options */
NULL, /* user_splits */
NULL, /* protocol_options */
{ /* icon_spec */
diff --git a/libpurple/protocols/mxit/roster.c b/libpurple/protocols/mxit/roster.c
--- a/libpurple/protocols/mxit/roster.c
+++ b/libpurple/protocols/mxit/roster.c
@@ -619,7 +619,7 @@ static void mxit_cb_buddy_deny( const ch
purple_debug_info( MXIT_PLUGIN_ID, "mxit_cb_buddy_deny '%s'\n", invite->contact->username );
/* send a deny subscription packet to MXit */
- mxit_send_deny_sub( invite->session, invite->contact->username, NULL );
+ mxit_send_deny_sub( invite->session, invite->contact->username, message );
/* remove the invite from our internal invites list */
invite->session->invites = g_list_remove( invite->session->invites, invite->contact );
More information about the Commits
mailing list