Sébastien Helleu
722cb27d04
core: add note for translators on command arguments (issue #2005 )
...
Only text between angle brackets (eg: "<name>") must be translated.
2023-09-05 13:28:26 +02:00
Sébastien Helleu
71b85f1238
core: send all command line parameters not beginning with a dash to all plugins, add info "auto_load_scripts"
...
This fixes an issue with IRC URL given on command line when it starts with
`ircs://` or `irc6://`: the server is not created at all (only `irc://` works
fine).
2023-05-30 20:56:25 +02:00
Sébastien Helleu
c07cf691ad
core, plugins: check that string parameters are not NULL in search functions (issue #1872 )
2023-01-28 15:14:22 +01:00
Sébastien Helleu
3319e6ff6e
script: make script names case sensitive (issue #1872 )
2023-01-28 15:14:19 +01:00
Sébastien Helleu
33bba784c3
core: update copyright dates
2023-01-01 14:54:35 +01:00
Sébastien Helleu
c44b79dce7
core: update copyright dates
2022-01-17 18:41:06 +01:00
Sébastien Helleu
5253478279
script: fix move of installed script on another filesystem ( closes #1667 )
2021-07-03 16:06:02 +02:00
Sébastien Helleu
0f9640a5f3
core: split WeeChat home in 4 directories, use XDG directories by default (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-05-11 21:06:34 +02:00
Sébastien Helleu
efc7a588d6
core: update copyright dates
2021-01-02 21:34:16 +01:00
Sébastien Helleu
88bef0b1b1
core: rename functions hook_completion_{get_string|list_add} to completion_{get_string|list_add}
...
Old functions are kept for compatibility reasons.
2020-05-08 10:51:30 +02:00
Sébastien Helleu
feb6258910
core: update copyright dates
2020-01-04 10:41:26 +01:00
Sébastien Helleu
9178156354
api: add argument "strip_items" in function string_split
2019-06-15 20:47:14 +02:00
Sébastien Helleu
3d95217745
api: return allocated string in hook_info callback and function info_get
2019-04-13 08:42:45 +02:00
Sébastien Helleu
2b70d71aa1
core: replace argument "keep_eol" by "flags" in function string_split ( closes #1322 )
2019-03-10 18:29:16 +01:00
Sébastien Helleu
2b0057239b
core: update copyright dates
2019-01-01 15:40:51 +01:00
Sébastien Helleu
4712d0bb06
core: use https for links to GNU GPL license
2018-11-29 23:16:07 +01:00
Sébastien Helleu
8abd05fe3d
core: replace "long unsigned int" by "unsigned long"
2018-10-01 22:21:25 +02:00
Sébastien Helleu
9265acf879
scripts: fix memory leak in hook_info callback
2018-04-13 19:55:20 +02:00
Sébastien Helleu
ab61ddd4ab
scripts: do not allocate memory when converting pointers to strings
2018-04-10 19:33:14 +02:00
Sébastien Helleu
21e63e7958
scripts: add configuration file for each script plugin
2018-01-15 21:57:06 +01:00
Sébastien Helleu
9876a8d0a7
core: update translations (issue #128 )
2018-01-06 14:07:57 +01:00
Sébastien Helleu
414959a474
scripts: add "eval" option in script commands and info "xxx_eval" (issue #128 )
...
For now this works only in python, perl, ruby and guile.
2018-01-06 14:07:35 +01:00
Sébastien Helleu
ed4837b2f6
core: update copyright dates
2018-01-05 00:54:18 +01:00
Sébastien Helleu
fbc87573d0
scripts: add infos "xxx_interpreter" and "xxx_version" in script plugins (issue #1075 )
2017-12-23 21:21:40 +01:00
Sébastien Helleu
c4626bc08a
scripts: add option "version" in script commands ( closes #1075 )
2017-12-23 20:35:30 +01:00
Sébastien Helleu
71965ddbae
script: replace scripts iset.pl and buffers.pl by go.py and urlserver.py in examples
2017-07-22 12:57:30 +02:00
Sébastien Helleu
ff448b9096
api: add argument "recurse_subdirs" in function exec_on_files()
2017-07-04 22:01:14 +02:00
Sébastien Helleu
705d86e684
core: update copyright dates
2017-01-01 11:32:04 +01:00
Sébastien Helleu
06a15b8762
script: fix auto-load of new scripts with /script install
...
Regression was introduced by commit
4c6d9e14d1 .
2016-12-31 12:46:52 +01:00
Sébastien Helleu
4c6d9e14d1
script: reload a script after upgrade only if it was loaded, set autoload only if the script was auto-loaded ( closes #855 )
2016-12-01 19:34:23 +01:00
Sébastien Helleu
5244a707cb
api: rename function unhook_all_plugin to unhook_all
2016-03-24 09:17:54 +01:00
Sébastien Helleu
cf6aca1619
core: add pointer in some callbacks ( closes #406 )
...
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-03-21 18:11:21 +01:00
Sébastien Helleu
b6b0249cac
scripts: fix typo in comment
2016-03-12 20:31:02 +01:00
Sébastien Helleu
3330724574
core: update copyright dates
2016-01-01 11:09:53 +01:00
Sébastien Helleu
bd850398e8
core: add missing comments before functions when the result must be freed after use
2015-07-04 08:24:53 +02:00
Sébastien Helleu
a020c28ea6
core: update copyright dates
2015-01-01 09:23:23 +01:00
Sébastien Helleu
4e43be6d2c
core: fix memory leak when removing script files
2014-08-09 18:49:06 +02:00
Sébastien Helleu
7aaf3be15b
api: add argument "flags" in function hdata_new_list
2014-05-24 18:03:14 +02:00
Sébastien Helleu
34723d2acc
api: allow wildcard "*" inside the mask in function string_match
2014-04-12 23:07:06 +02:00
Sebastien Helleu
437767c0ca
api: add integer return code for functions hook_{signal|hsignal}_send
2014-02-10 17:42:53 +01:00
Sebastien Helleu
8fc7515322
core: reformat hook_command arguments
2014-01-18 20:33:19 +01:00
Sebastien Helleu
02868b4dc0
core: optimize xxx_valid() functions: return immediately if pointer is NULL
2014-01-09 19:28:51 +01:00
Sebastien Helleu
892aa79fb5
core: update copyright dates
2014-01-01 00:14:12 +01:00
Sebastien Helleu
b63ac8a0f1
scripts: display lib version on signal "debug_libs"
2013-11-17 20:51:54 +01:00
Sebastien Helleu
4c2cffbd31
script: add info about things defined by script in the detailed view of script (/script show)
2013-07-28 16:17:27 +02:00
Sebastien Helleu
4f62af028d
api: do not display a warning by default when loading a script with a license different from GPL
2013-05-18 22:00:47 +02:00
Sebastien Helleu
a290589f7c
scripts: create directories (language and language/autoload) on each action (install/remove/autoload), just in case they have been removed (bug #38473 )
2013-03-17 18:45:55 +01:00
Sebastien Helleu
b60aec975b
script: add control of autoload (enable/disable/toggle) (task #12393 )
...
New option script.scripts.autoload, new options autoload/noautoload/toggleautoload
for command /script, new action "A" (meta-A) on script buffer (toggle autoload).
2013-02-25 08:46:41 +01:00
Sebastien Helleu
0e3bec6d2e
scripts: do now allow empty script name in function "register"
2013-01-22 09:26:11 +01:00
Sebastien Helleu
f97598b4aa
core: update copyright dates
2013-01-01 13:12:49 +01:00