| 522 if (prpl_info->chat_whisper) |
522 if (prpl_info->chat_whisper) |
| 523 prpl_info->chat_whisper(gc, id, who, message); |
523 prpl_info->chat_whisper(gc, id, who, message); |
| 524 } |
524 } |
| 525 } |
525 } |
| 526 |
526 |
| 527 int purple_serv_chat_send(PurpleConnection *gc, int id, const char *message, PurpleMessageFlags flags) |
527 int purple_serv_chat_send(PurpleConnection *gc, int id, PurpleMessage *msg) |
| 528 { |
528 { |
| 529 PurplePlugin *prpl; |
529 PurplePlugin *prpl; |
| 530 PurplePluginProtocolInfo *prpl_info; |
530 PurplePluginProtocolInfo *prpl_info; |
| 531 |
531 |
| 532 prpl = purple_connection_get_prpl(gc); |
532 prpl = purple_connection_get_prpl(gc); |
| 533 prpl_info = PURPLE_PLUGIN_PROTOCOL_INFO(prpl); |
533 prpl_info = PURPLE_PLUGIN_PROTOCOL_INFO(prpl); |
| 534 |
534 |
| |
535 g_return_val_if_fail(msg != NULL, -EINVAL); |
| |
536 |
| 535 if (prpl_info->chat_send) |
537 if (prpl_info->chat_send) |
| 536 return prpl_info->chat_send(gc, id, message, flags); |
538 return prpl_info->chat_send(gc, id, msg); |
| 537 |
539 |
| 538 return -EINVAL; |
540 return -EINVAL; |
| 539 } |
541 } |
| 540 |
542 |
| 541 /* |
543 /* |