Age | Commit message (Collapse) | Author | |
---|---|---|---|
2024-03-05 | api: add functions config_{boolean|integer|string|color|enum}_inherited in ↵ | Sébastien Helleu | |
scripting API | |||
2024-03-05 | core: refactor functions that read values of config options | Sébastien Helleu | |
2024-01-01 | core: update copyright dates | Sébastien Helleu | |
2023-11-04 | core: fix double call to hook config when an option is unset | Sébastien Helleu | |
2023-11-03 | core: call hook config when options are freed by unset or when file/section ↵ | Sébastien Helleu | |
is freed This fixes a refresh issue on the fset buffer when a plugin is unloaded: now the options displayed that are freed are properly removed from the fset buffer. | |||
2023-11-01 | core, plugins: set error to NULL before calling strtol() | Sébastien Helleu | |
This is not strictly necessary, just in case the function strtol() doesn't update the pointer. | |||
2023-10-30 | core: fix memory leak when config version is invalid or not supported | Sébastien Helleu | |
2023-10-30 | core: fix crash when "config_version" is present in a configuration file ↵ | Sébastien Helleu | |
without a value | |||
2023-09-12 | core: translate error messages (issue #2013) | Sébastien Helleu | |
2023-09-12 | core: automatically backup config file read if it has an unsupported version ↵ | Sébastien Helleu | |
(closes #2013) | |||
2023-09-11 | core: add path in message displayed when a config file is updated to a newer ↵ | Sébastien Helleu | |
version | |||
2023-09-11 | core: display a message when a configuration file is updated to a newer version | Sébastien Helleu | |
2023-08-18 | core: add name of section in warning message for invalid value when reading ↵ | Sébastien Helleu | |
config | |||
2023-08-17 | core: fix integer overflow when setting integer option with `++N` or `--N` | Sébastien Helleu | |
2023-07-11 | core: clarify messages for unknown options/sections read in config files ↵ | Sébastien Helleu | |
(closes #1967) | |||
2023-07-08 | core: add option type "enum" (closes #1973) | Sébastien Helleu | |
The type "enum" replaces type "integer" when used with string values. For compatibility, any option created with type "integer" and string values is automatically created to "enum" on creation, with no error. | |||
2023-06-17 | core: ignore rest of config file if config version is invalid or not supported | Sébastien Helleu | |
2023-06-05 | doc: fix URLs to WeeChat docs | Sébastien Helleu | |
2023-03-25 | core: fix memory leak in function config_file_read_internal | Sébastien Helleu | |
This was caused by commit 66571a0b634ef28307f6d6ceef1ba29c091ca524. | |||
2023-03-19 | core: do not call check callback when setting default value of option | Sébastien Helleu | |
2023-03-19 | core: run config hooks only when value or default value is actually changed ↵ | Sébastien Helleu | |
in set/reset/unset functions | |||
2023-03-16 | core: display a warning if the config version read is newer than supported ↵ | Sébastien Helleu | |
version | |||
2023-03-16 | core: add function config_file_option_set_default | Sébastien Helleu | |
2023-03-16 | core: add configuration version, add API function config_set_version | Sébastien Helleu | |
2023-03-16 | core: simplify function config_file_read_internal | Sébastien Helleu | |
2023-01-28 | core, plugins: replace calls to strcmp by string_strcmp when difference ↵ | Sébastien Helleu | |
matters (issue #1872) | |||
2023-01-28 | core, plugins: replace calls to string_str(n)cmp by str(n)cmp (issue #1872) | Sébastien Helleu | |
2023-01-28 | core: make get/set object properties case sensitive (issue #1872) | Sébastien Helleu | |
2023-01-28 | core: make configuration files, sections and options case sensitive (issue ↵ | Sébastien Helleu | |
#1872) | |||
2023-01-28 | core: add function config_file_get_configs_by_priority (issue #1872) | Sébastien Helleu | |
2023-01-28 | core: simplify code in config functions (issue #1872) | Sébastien Helleu | |
2023-01-28 | core: sort configuration files by name, reload them by priority (issue #1872) | Sébastien Helleu | |
2023-01-28 | core: add priority in config file (issue #1872) | Sébastien Helleu | |
Priority is now allowed in function config_file_new, parameter `name`, with the same format as hooks: "priority|name" (for example: "2000|test"). If not specified, the default priority is 1000. | |||
2023-01-01 | core: update copyright dates | Sébastien Helleu | |
2022-10-23 | core: Prevent use of uninitialized memory when setting invalid color | Trygve Aaberge | |
If a color option value is null and is tried being set to an invalid color, the value was set to uninitialized memory which can lead to a segfault. Can be reproduced with this script: https://gist.github.com/trygveaa/6ddb3a52f525a7fd8e0908bafa83e07c The option doesn't have to be set from a script, it also happens with the /set command. | |||
2022-07-20 | api: add arguments "index_start" and "index_end" in function ↵ | Sébastien Helleu | |
string_rebuild_split_string | |||
2022-07-20 | api: rename function string_build_with_split_string to ↵ | Sébastien Helleu | |
string_rebuild_split_string | |||
2022-06-18 | core: add trailing slashes in URLs | Sébastien Helleu | |
2022-01-17 | core: update copyright dates | Sébastien Helleu | |
2021-11-04 | core: fix access to integer/long/time arrays in hdata, add support of static ↵ | Sébastien Helleu | |
arrays in hdata | |||
2021-10-01 | core: add command /toggle | Sébastien Helleu | |
2021-09-27 | core: check that option is not NULL in function ↵ | Sébastien Helleu | |
config_file_option_value_to_string | |||
2021-09-27 | core: fix search of option when the section is not given | Sébastien Helleu | |
2021-09-27 | core: check that option_name is not NULL in config file functions | Sébastien Helleu | |
2021-05-11 | core: 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-03-14 | core: mention /fset command in header comment of configuration files | Sébastien Helleu | |
2021-01-02 | core: update copyright dates | Sébastien Helleu | |
2020-11-17 | core: fix and normalize error messages | Sébastien Helleu | |
2020-01-04 | core: update copyright dates | Sébastien Helleu | |
2019-10-23 | core: optimize search of options in configuration sections | Sébastien Helleu | |
Since options are sorted in sections, it is faster to search from the last option to the first one. For configuration files with many options in a single section (like plugins.conf), the load of configuration file is about 2 to 3x faster. |