| 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 |