| 401 |
401 |
| 402 if (file) |
402 if (file) |
| 403 gaim_xfer_request_accepted(xfer, file); |
403 gaim_xfer_request_accepted(xfer, file); |
| 404 else |
404 else |
| 405 gaim_xfer_request(xfer); |
405 gaim_xfer_request(xfer); |
| |
406 } |
| |
407 |
| |
408 static gboolean |
| |
409 msn_can_receive_file(GaimConnection *gc, const char *who) |
| |
410 { |
| |
411 GaimAccount *account; |
| |
412 char *normal; |
| |
413 gboolean ret; |
| |
414 |
| |
415 account = gaim_connection_get_account(gc); |
| |
416 |
| |
417 normal = g_strdup(msn_normalize(account, gaim_account_get_username(account))); |
| |
418 |
| |
419 ret = strcmp(normal, msn_normalize(account, who)); |
| |
420 |
| |
421 g_free(normal); |
| |
422 |
| |
423 return ret; |
| 406 } |
424 } |
| 407 |
425 |
| 408 /************************************************************************** |
426 /************************************************************************** |
| 409 * Protocol Plugin ops |
427 * Protocol Plugin ops |
| 410 **************************************************************************/ |
428 **************************************************************************/ |
| 1858 NULL, /* set_chat_topic */ |
1876 NULL, /* set_chat_topic */ |
| 1859 NULL, /* find_blist_chat */ |
1877 NULL, /* find_blist_chat */ |
| 1860 NULL, /* roomlist_get_list */ |
1878 NULL, /* roomlist_get_list */ |
| 1861 NULL, /* roomlist_cancel */ |
1879 NULL, /* roomlist_cancel */ |
| 1862 NULL, /* roomlist_expand_category */ |
1880 NULL, /* roomlist_expand_category */ |
| 1863 NULL, /* can_receive_file */ |
1881 msn_can_receive_file, /* can_receive_file */ |
| 1864 msn_send_file /* send_file */ |
1882 msn_send_file /* send_file */ |
| 1865 }; |
1883 }; |
| 1866 |
1884 |
| 1867 static GaimPluginInfo info = |
1885 static GaimPluginInfo info = |
| 1868 { |
1886 { |