libpurple/protocols/mxit/mxit.c

changeset 36076
a0e5b68ff4ef
parent 36055
33978dc8ef6f
child 36078
ad2b7d9cc0c3
equal deleted inserted replaced
36075:dfb5988e053b 36076:a0e5b68ff4ef
399 * @param flags Message flags (defined in conversation.h) 399 * @param flags Message flags (defined in conversation.h)
400 * @return Positive value (success, and echo to conversation window) 400 * @return Positive value (success, and echo to conversation window)
401 Zero (success, no echo) 401 Zero (success, no echo)
402 Negative value (error) 402 Negative value (error)
403 */ 403 */
404 static int mxit_send_im( PurpleConnection* gc, const char* who, const char* message, PurpleMessageFlags flags ) 404 static int mxit_send_im(PurpleConnection* gc, PurpleMessage *msg)
405 { 405 {
406 purple_debug_info( MXIT_PLUGIN_ID, "Sending message '%s' to buddy '%s'\n", message, who ); 406 mxit_send_message(purple_connection_get_protocol_data(gc),
407 407 purple_message_get_who(msg), purple_message_get_contents(msg),
408 mxit_send_message( purple_connection_get_protocol_data( gc ), who, message, TRUE, FALSE ); 408 TRUE, FALSE);
409 409
410 return 1; /* echo to conversation window */ 410 return 1; /* echo to conversation window */
411 } 411 }
412 412
413 413

mercurial