Mercurial > pidgin
diff libpurple/protocols/mxit/protocol.c @ 29388:81ea740f92a4
Add extra parameter to mxit_send_message() function to indicate if the message should be
sent normally or as a MXit command.
author | andrew.victor@mxit.com |
---|---|
date | Tue, 26 Jan 2010 14:26:22 +0000 |
parents | 232fcf1755d6 |
children | 1147389b5424 |
line wrap: on
line diff
--- a/libpurple/protocols/mxit/protocol.c Tue Jan 26 14:16:18 2010 +0000 +++ b/libpurple/protocols/mxit/protocol.c Tue Jan 26 14:26:22 2010 +0000 @@ -695,12 +695,12 @@ * @param to The username of the recipient * @param msg The message text */ -void mxit_send_message( struct MXitSession* session, const char* to, const char* msg, gboolean parse_markup ) +void mxit_send_message( struct MXitSession* session, const char* to, const char* msg, gboolean parse_markup, gboolean is_command ) { char data[CP_MAX_PACKET]; char* markuped_msg; int datalen; - int msgtype = CP_MSGTYPE_NORMAL; + int msgtype = ( is_command ? CP_MSGTYPE_COMMAND : CP_MSGTYPE_NORMAL ); /* first we need to convert the markup from libPurple to MXit format */ if ( parse_markup )