libpurple/server.c

branch
release-2.x.y
changeset 40427
93bf0203f935
parent 38916
a2c4e6a21e21
child 40429
3d50e9e9e84d
equal deleted inserted replaced
40426:159344ba2a49 40427:93bf0203f935
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 }

mercurial