Mercurial > pidgin
diff libpurple/protocols/mxit/protocol.c @ 31506:2e4ac25df4ba
Protocol 6.3 change to SubscribeContact packet.
author | andrew.victor@mxit.com |
---|---|
date | Tue, 12 Apr 2011 19:55:13 +0000 |
parents | 67c2d695e8d5 |
children | c5bdf87770df |
line wrap: on
line diff
--- a/libpurple/protocols/mxit/protocol.c Mon Apr 11 22:16:34 2011 +0000 +++ b/libpurple/protocols/mxit/protocol.c Tue Apr 12 19:55:13 2011 +0000 @@ -990,20 +990,23 @@ * * @param session The MXit session object * @param username The username of the contact being invited + * @param mxitid Indicates the username is a MXitId. * @param alias Our alias for the contact * @param groupname Group in which contact should be stored. * @param message Invite message */ -void mxit_send_invite( struct MXitSession* session, const char* username, const char* alias, const char* groupname, const char* message ) +void mxit_send_invite( struct MXitSession* session, const char* username, gboolean mxitid, const char* alias, const char* groupname, const char* message ) { char data[CP_MAX_PACKET]; int datalen; /* convert the packet to a byte stream */ datalen = snprintf( data, sizeof( data ), - "ms=%s%c%s%c%s%c%i%c%s", /* "ms"=group\1username\1alias\1type\1msg */ + "ms=%s%c%s%c%s%c%i%c%s%c%i", /* "ms"=group \1 username \1 alias \1 type \1 msg \1 isuserid */ groupname, CP_FLD_TERM, username, CP_FLD_TERM, alias, - CP_FLD_TERM, MXIT_TYPE_MXIT, CP_FLD_TERM, ( message ? message : "" ) + CP_FLD_TERM, MXIT_TYPE_MXIT, CP_FLD_TERM, + ( message ? message : "" ), CP_FLD_TERM, + ( mxitid ? 0 : 1 ) ); /* queue packet for transmission */