libpurple/server.c

changeset 36078
ad2b7d9cc0c3
parent 36077
b7328f4317c7
child 36088
4c386387f6f3
equal deleted inserted replaced
36077:b7328f4317c7 36078:ad2b7d9cc0c3
508 508
509 if (prpl_info->chat_leave) 509 if (prpl_info->chat_leave)
510 prpl_info->chat_leave(gc, id); 510 prpl_info->chat_leave(gc, id);
511 } 511 }
512 512
513 void purple_serv_chat_whisper(PurpleConnection *gc, int id, const char *who, const char *message)
514 {
515 PurplePlugin *prpl;
516 PurplePluginProtocolInfo *prpl_info;
517
518 if (gc) {
519 prpl = purple_connection_get_prpl(gc);
520 prpl_info = PURPLE_PLUGIN_PROTOCOL_INFO(prpl);
521
522 if (prpl_info->chat_whisper)
523 prpl_info->chat_whisper(gc, id, who, message);
524 }
525 }
526
527 int purple_serv_chat_send(PurpleConnection *gc, int id, PurpleMessage *msg) 513 int purple_serv_chat_send(PurpleConnection *gc, int id, PurpleMessage *msg)
528 { 514 {
529 PurplePlugin *prpl; 515 PurplePlugin *prpl;
530 PurplePluginProtocolInfo *prpl_info; 516 PurplePluginProtocolInfo *prpl_info;
531 517

mercurial