| 990 (!prpl_info->can_receive_file |
990 (!prpl_info->can_receive_file |
| 991 || prpl_info->can_receive_file(gc, who))) |
991 || prpl_info->can_receive_file(gc, who))) |
| 992 prpl_info->send_file(gc, who, file); |
992 prpl_info->send_file(gc, who, file); |
| 993 } |
993 } |
| 994 } |
994 } |
| |
995 |
| |
996 void serv_chat_send_file(PurpleConnection *gc, int id, const char *file) |
| |
997 { |
| |
998 PurplePlugin *prpl; |
| |
999 PurplePluginProtocolInfo *prpl_info; |
| |
1000 |
| |
1001 if (gc) { |
| |
1002 prpl = purple_connection_get_prpl(gc); |
| |
1003 prpl_info = PURPLE_PLUGIN_PROTOCOL_INFO(prpl); |
| |
1004 |
| |
1005 if (prpl_info->chat_send_file && |
| |
1006 (!prpl_info->chat_can_receive_file |
| |
1007 || prpl_info->chat_can_receive_file(gc, id))) |
| |
1008 prpl_info->chat_send_file(gc, id, file); |
| |
1009 } |
| |
1010 } |