summaryrefslogtreecommitdiff
path: root/src/plugins/xfer/xfer.c
AgeCommit message (Collapse)Author
2023-01-28core, plugins: replace calls to string_str(n)cmp by str(n)cmp (issue #1872)Sébastien Helleu
2023-01-28xfer: make xfer types and protocols case sensitive (issue #1872)Sébastien Helleu
2023-01-28core, plugins: make plugin names case sensitive (issue #1872)Sébastien Helleu
2023-01-28core, plugins: make commands, hook command_run, completions and aliases case ↵Sébastien Helleu
sensitive (issue #1872)
2023-01-28plugins: set priority in calls to weechat_config_new (issue #1872)Sébastien Helleu
2023-01-01core: update copyright datesSébastien Helleu
2022-10-08xfer: add missing include of netinet/in.hSébastien Helleu
This fixes compilation on FreeBSD 13.0.
2022-09-03xfer: fix DCC file receive on Termux (closes #1811)Sébastien Helleu
This fixes such error displayed on Termux when receiving a DCC file: xfer: invalid address "96747949": error 8 hostname nor servname provided, or not known
2022-08-08xfer: move and rename function xfer_filename_crc32 to xfer-file.cSébastien Helleu
2022-08-07core: add option `-save` in command `/upgrade` (closes #1630)Sébastien Helleu
2022-08-07xfer: disconnect all active DCC chats and files on /upgradeSébastien Helleu
2022-07-27irc: display an error message when using command /dcc without xfer plugin loadedSébastien Helleu
2022-07-27xfer: fix crash when closing DCC chat bufferSébastien Helleu
2022-01-17core: update copyright datesSébastien Helleu
2022-01-15xfer: fix auto-accept of server/nick when the server name contains UTF-8 ↵Sébastien Helleu
chars (issue #1739)
2021-05-11core: split WeeChat home in 4 directories, use XDG directories by default ↵Sébastien Helleu
(issue #1285) The 4 directories (which can be the same): - config: configuration files, certificates - data: log/upgrade files, local plugins, scripts, xfer files - cache: script repository, scripts downloaded (temporary location) - runtime: FIFO pipe, relay UNIX sockets
2021-01-02core: update copyright datesSébastien Helleu
2020-01-04xfer: send signal "xfer_ended" after the received file has been renamed ↵Sébastien Helleu
(closes #1438)
2020-01-04core: update copyright datesSébastien Helleu
2019-10-05xfer: add option xfer.file.download_temporary_suffix with default value ↵Sébastien Helleu
".part" (closes #1237)
2019-10-05xfer: fix memory leak when a xfer is freed and when the plugin is unloadedSébastien Helleu
2019-06-24core: auto disable upgrade process (command line option "--upgrade") if the ↵Sébastien Helleu
file weechat.upgrade is not found
2019-06-15api: add argument "strip_items" in function string_splitSébastien Helleu
2019-04-13api: return allocated string in hook_info callback and function info_getSébastien Helleu
2019-03-10core: replace argument "keep_eol" by "flags" in function string_split ↵Sébastien Helleu
(closes #1322)
2019-01-01core: update copyright datesSébastien Helleu
2018-11-29core: use https for links to GNU GPL licenseSébastien Helleu
2018-03-28xfer: add xfer.network.send_ack optionDominique Martinet
This option disables sending acks during transfer, leaving only the final ack, as would naturally happen if sending ack ever returns EWOULDBLOCK.
2018-01-07core: fix some stylesSébastien Helleu
2018-01-05core: update copyright datesSébastien Helleu
2017-08-12core: fix cast of time_t (to "long long" instead of "long") (closes #1051)Sébastien Helleu
2017-07-08fset: fix priority of plugin (load it after all other plugins)Sébastien Helleu
This fixes a refresh problem of options after /upgrade in fset buffer.
2017-01-01core: update copyright datesSébastien Helleu
2016-10-30xfer: add check on filename2 allocationSébastien Helleu
Now string_expand_home() can return NULL if the HOME environment variable it not set, so this commit adds an extra check on the variable "filename2" before using it.
2016-08-20xfer: fix crash on DCC send if option xfer.file.auto_accept_nicks is set ↵Sébastien Helleu
(closes #781)
2016-08-13xfer: fix NULL pointer derefence in case of memory error in ↵Sébastien Helleu
xfer_set_{local|remote}_address()
2016-08-07core: irc, xfer: do not check return code of res_init()Sébastien Helleu
If the call to res_init() fails, the connection may be OK anyway or in worst case it will fail (with an appropriate error) if the name can not be resolved.
2016-08-07core, irc, xfer: add missing includes for function res_init()Sébastien Helleu
2016-08-07core/plugins: Use res_init before getaddrinfo.Raghavendra Prabhu
With weechat, if the network changes in anyway that causes resolv.conf to be updated, that is not picked up, resulting in irc: connecting to server XXXX.com/1026 (SSL)... irc: address "XXX.com" not found irc: error: Name or service not known irc: reconnecting to server in 30 seconds This happens, especially when one connects to an irc server behind a VPN. This can also happen when there is no network connectivity weechat was started but later network is connected to. The fix is simple, it relies on calling res_init (3) before getaddrinfo in network_connect_child and other places. res_init reloads the resolv.conf and getaddrinfo does not fail with address resolution error.
2016-05-27core, irc, xfer: display more information in memory allocation errors (issue ↵Sébastien Helleu
#573)
2016-03-21core: add pointer in some callbacks (closes #406)Sébastien Helleu
This pointer is the first argument received by callbacks, and the existing argument "data" is now automatically freed by WeeChat when the object containing the callback is removed. With this new pointer, the linked list of callbacks in scripts has been removed. This will improve speed of scripts (using a lot of hooks), reduce memory used by scripts and reduce time to unload scripts. Following functions are affected in the C API: * exec_on_files * config_new * config_new_section * config_new_option * hook_command * hook_command_run * hook_timer * hook_fd * hook_process * hook_process_hashtable * hook_connect * hook_print * hook_signal * hook_hsignal * hook_config * hook_completion * hook_modifier * hook_info * hook_info_hashtable * hook_infolist * hook_hdata * hook_focus * unhook_all_plugin * buffer_new * bar_item_new * upgrade_new * upgrade_read
2016-01-01core: update copyright datesSébastien Helleu
2015-06-27xfer: evaluate content of options xfer.file.download_path and ↵Sébastien Helleu
xfer.file.upload_path (issue #388)
2015-04-30core: add comments after some #endifSébastien Helleu
2015-01-15core: add priority in plugins to initialize them in orderSébastien Helleu
Current order is: charset, logger, exec, trigger, aspell, alias, fifo, xfer, irc, relay, guile/lua/perl/python/ruby/tcl, script.
2015-01-01core: update copyright datesSébastien Helleu
2014-11-09Merge branch 'xfer_chat' of git://github.com/talisein/weechat-1 into ↵Sébastien Helleu
talisein-xfer_chat
2014-11-09xfer: fix commentsSébastien Helleu
2014-11-09xfer: return 0/1 instead of WEECHAT_RC_OK/ERROR in function xfer_resolve_addrSébastien Helleu
2014-08-20xfer: bind to wildcard address when sendingAndrew Potter
When #5 was fixed, we started to always bind to the local address connected to the irc server because the xfer.network.own_ip address may not be able to be bound to when NATed. But this means when the own_ip address is a different family (IPv4 vs IPv6) from the irc server connection, we were listening for connections on the wrong interface. This patch lets us figure out which family is being used, (xfer.network.own_ip's family, or the irc connection's family otherwise) and bind() into the correct family via that family's wildcard address.