summaryrefslogtreecommitdiff
path: root/src/core/wee-config-file.c
AgeCommit message (Collapse)Author
2024-03-05api: add functions config_{boolean|integer|string|color|enum}_inherited in ↵Sébastien Helleu
scripting API
2024-03-05core: refactor functions that read values of config optionsSébastien Helleu
2024-01-01core: update copyright datesSébastien Helleu
2023-11-04core: fix double call to hook config when an option is unsetSébastien Helleu
2023-11-03core: 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-01core, 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-30core: fix memory leak when config version is invalid or not supportedSébastien Helleu
2023-10-30core: fix crash when "config_version" is present in a configuration file ↵Sébastien Helleu
without a value
2023-09-12core: translate error messages (issue #2013)Sébastien Helleu
2023-09-12core: automatically backup config file read if it has an unsupported version ↵Sébastien Helleu
(closes #2013)
2023-09-11core: add path in message displayed when a config file is updated to a newer ↵Sébastien Helleu
version
2023-09-11core: display a message when a configuration file is updated to a newer versionSébastien Helleu
2023-08-18core: add name of section in warning message for invalid value when reading ↵Sébastien Helleu
config
2023-08-17core: fix integer overflow when setting integer option with `++N` or `--N`Sébastien Helleu
2023-07-11core: clarify messages for unknown options/sections read in config files ↵Sébastien Helleu
(closes #1967)
2023-07-08core: 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-17core: ignore rest of config file if config version is invalid or not supportedSébastien Helleu
2023-06-05doc: fix URLs to WeeChat docsSébastien Helleu
2023-03-25core: fix memory leak in function config_file_read_internalSébastien Helleu
This was caused by commit 66571a0b634ef28307f6d6ceef1ba29c091ca524.
2023-03-19core: do not call check callback when setting default value of optionSébastien Helleu
2023-03-19core: run config hooks only when value or default value is actually changed ↵Sébastien Helleu
in set/reset/unset functions
2023-03-16core: display a warning if the config version read is newer than supported ↵Sébastien Helleu
version
2023-03-16core: add function config_file_option_set_defaultSébastien Helleu
2023-03-16core: add configuration version, add API function config_set_versionSébastien Helleu
2023-03-16core: simplify function config_file_read_internalSébastien Helleu
2023-01-28core, plugins: replace calls to strcmp by string_strcmp when difference ↵Sébastien Helleu
matters (issue #1872)
2023-01-28core, plugins: replace calls to string_str(n)cmp by str(n)cmp (issue #1872)Sébastien Helleu
2023-01-28core: make get/set object properties case sensitive (issue #1872)Sébastien Helleu
2023-01-28core: make configuration files, sections and options case sensitive (issue ↵Sébastien Helleu
#1872)
2023-01-28core: add function config_file_get_configs_by_priority (issue #1872)Sébastien Helleu
2023-01-28core: simplify code in config functions (issue #1872)Sébastien Helleu
2023-01-28core: sort configuration files by name, reload them by priority (issue #1872)Sébastien Helleu
2023-01-28core: 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-01core: update copyright datesSébastien Helleu
2022-10-23core: Prevent use of uninitialized memory when setting invalid colorTrygve 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-20api: add arguments "index_start" and "index_end" in function ↵Sébastien Helleu
string_rebuild_split_string
2022-07-20api: rename function string_build_with_split_string to ↵Sébastien Helleu
string_rebuild_split_string
2022-06-18core: add trailing slashes in URLsSébastien Helleu
2022-01-17core: update copyright datesSébastien Helleu
2021-11-04core: fix access to integer/long/time arrays in hdata, add support of static ↵Sébastien Helleu
arrays in hdata
2021-10-01core: add command /toggleSébastien Helleu
2021-09-27core: check that option is not NULL in function ↵Sébastien Helleu
config_file_option_value_to_string
2021-09-27core: fix search of option when the section is not givenSébastien Helleu
2021-09-27core: check that option_name is not NULL in config file functionsSébastien Helleu
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-03-14core: mention /fset command in header comment of configuration filesSébastien Helleu
2021-01-02core: update copyright datesSébastien Helleu
2020-11-17core: fix and normalize error messagesSébastien Helleu
2020-01-04core: update copyright datesSébastien Helleu
2019-10-23core: optimize search of options in configuration sectionsSé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.