summaryrefslogtreecommitdiff
path: root/doc/sr/weechat_plugin_api.sr.adoc
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-09-12 13:35:02 +0200
committerSébastien Helleu <flashcode@flashtux.org>2023-09-12 13:35:02 +0200
commit54a58151057347f176056dae9795c042a3fbddcb (patch)
treee0a72893a5c82253031e7dfec450a03c6086c646 /doc/sr/weechat_plugin_api.sr.adoc
parentc4c58e0914f7c5aaabe046d8cce33862ad28511d (diff)
downloadweechat-54a58151057347f176056dae9795c042a3fbddcb.zip
doc/api: fix return values for callback_read in config_new_section
Diffstat (limited to 'doc/sr/weechat_plugin_api.sr.adoc')
-rw-r--r--doc/sr/weechat_plugin_api.sr.adoc7
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/sr/weechat_plugin_api.sr.adoc b/doc/sr/weechat_plugin_api.sr.adoc
index 65d0dd3b1..62f7cd707 100644
--- a/doc/sr/weechat_plugin_api.sr.adoc
+++ b/doc/sr/weechat_plugin_api.sr.adoc
@@ -6509,9 +6509,10 @@ my_section_read_cb (const void *pointer, void *data,
{
/* ... */
- return WEECHAT_CONFIG_READ_OK;
- /* return WEECHAT_CONFIG_READ_MEMORY_ERROR; */
- /* return WEECHAT_CONFIG_READ_FILE_NOT_FOUND; */
+ return WEECHAT_CONFIG_OPTION_SET_OK_CHANGED;
+ /* return WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE; */
+ /* return WEECHAT_CONFIG_OPTION_SET_ERROR; */
+ /* return WEECHAT_CONFIG_OPTION_SET_OPTION_NOT_FOUND; */
}
int