]> jfr.im git - irc/weechat/weechat.git/commit
doc/api: Fix return values for callback_read in config_new_section
authorTrygve Aaberge <redacted>
Sat, 22 Oct 2022 10:30:04 +0000 (12:30 +0200)
committerSébastien Helleu <redacted>
Sun, 11 Dec 2022 14:33:11 +0000 (15:33 +0100)
commitabdabb3ae46061c00e4cd975710e6415672fd8cb
tree9eea29f1f1824df3a878caf1429b69efc71a4bbf
parenta1b6d9622f65ab2e83fabd518805ef6d263ceb06
doc/api: Fix return values for callback_read in config_new_section

These return values were wrong in the description and C example. As can
be seen on lines 2835 and 2873-2903 of src/core/wee-config-file.c the
callback_read function should return the same as the function
config_file_option_set plus the value
WEECHAT_CONFIG_OPTION_SET_OPTION_NOT_FOUND (which is also the same as
the possible return values of config_file_option_set_with_string).

The Python example was already correct and the C example was already
correct in the other languages apart from English.

These errors were introduced in commit 02e2b21d3 and commit 5210ff1ae.
doc/en/weechat_plugin_api.en.adoc
doc/fr/weechat_plugin_api.fr.adoc
doc/it/weechat_plugin_api.it.adoc
doc/ja/weechat_plugin_api.ja.adoc
doc/sr/weechat_plugin_api.sr.adoc