diff --git a/plugins/plugin20.html b/plugins/plugin20.html
index 787c048b..b36490ba 100644
--- a/plugins/plugin20.html
+++ b/plugins/plugin20.html
@@ -81,6 +81,11 @@ margin-right: 32px;
xchat_strip
xchat_free
+
xchat_set_pluginpref_str
+
xchat_get_pluginpref_str
+
xchat_set_pluginpref_int
+
xchat_get_pluginpref_int
+
xchat_list_get
xchat_list_free
xchat_list_fields (not documented yet)
@@ -998,5 +1003,85 @@ A newly allocated string or NULL for failure. You must free this string with xch
+
ph: Plugin handle (as given to xchat_plugin_init). ++Returns: 1 for success, 0 for failure. +
var: Name of the setting to save. +
value: String value of the the setting. +
+
++In the example above, the settings will be saved to the plugin_tester_thingie.conf file, and its content will be: +int xchat_plugin_init (xchat_plugin *plugin_handle, + char **plugin_name, + char **plugin_desc, + char **plugin_version, + char *arg) +{ + ph = plugin_handle; + *plugin_name = "Tester Thingie"; + *plugin_desc = "Testing stuff"; + *plugin_version = "1.0"; + + xchat_set_pluginpref_str (ph, "myvar1", "I want to save this string!"); + xchat_set_pluginpref_str (ph, "myvar2", "This is important, too."); + + return 1; /* return 1 for success */ +}+
++You should never need to edit this file manually. +myvar1 = I want to save this string! +myvar2 = This is important, too.+
ph: Plugin handle (as given to xchat_plugin_init). ++Returns: 1 for success, 0 for failure. +
var: Name of the setting to load. +
dest: Array to save the loaded setting's string value to. +
+
ph: Plugin handle (as given to xchat_plugin_init). ++Returns: 1 for success, 0 for failure. +
var: Name of the setting to save. +
value: Decimal value of the the setting. +
+
ph: Plugin handle (as given to xchat_plugin_init). ++Returns: The decimal value of the requested setting upon success, -1 for failure. +
var: Name of the setting to load. +
+