comparison src/server.c @ 7619:994b2d782711

[gaim-migrate @ 8243] Juan Pablo Mendoza made file sending a little more generic, UI-wise, and added drag-and-drop file sending, as well as a Send File in the conversation menu. Congrats Juan on the $400 bounty. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Mon, 24 Nov 2003 02:35:27 +0000
parents 532635bc38c1
children 6db061321ec4
comparison
equal deleted inserted replaced
7618:53e38b1ce00a 7619:994b2d782711
289 gaim_conv_im_stop_type_again_timeout(GAIM_CONV_IM(c)); 289 gaim_conv_im_stop_type_again_timeout(GAIM_CONV_IM(c));
290 290
291 return val; 291 return val;
292 } 292 }
293 293
294 void serv_send_file(GaimConnection *gc, const char *name, const char *file)
295 {
296 GaimPluginProtocolInfo *prpl_info = NULL;
297
298 if (gc != NULL && gc->prpl != NULL)
299 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl);
300
301 if (prpl_info->send_file == NULL || file == NULL || name == NULL)
302 return;
303
304 prpl_info->send_file(gc, name, file);
305 }
306
294 void serv_get_info(GaimConnection *g, const char *name) 307 void serv_get_info(GaimConnection *g, const char *name)
295 { 308 {
296 GaimPluginProtocolInfo *prpl_info = NULL; 309 GaimPluginProtocolInfo *prpl_info = NULL;
297 310
298 if (g != NULL && g->prpl != NULL) 311 if (g != NULL && g->prpl != NULL)