diff --git a/plugins/plugin20.html b/plugins/plugin20.html
index b36490ba..a9aaaace 100644
--- a/plugins/plugin20.html
+++ b/plugins/plugin20.html
@@ -1068,7 +1068,32 @@ You should never need to edit this file manually.
Returns: 1 for success, 0 for failure.
-
+
Example:
+
+static int saveint_cb (char *word[], char *word_eol[], void *user_data)
+{
+ int buffer = atoi (word[2]);
+
+ if (buffer > 0 && buffer < INT_MAX)
+ {
+ if (xchat_set_pluginpref_int (ph, "myint1", buffer))
+ {
+ xchat_printf (ph, "Setting successfully saved!\n");
+ }
+ else
+ {
+ xchat_printf (ph, "Error while saving!\n");
+ }
+ }
+ else
+ {
+ xchat_printf (ph, "Invalid input!\n");
+ }
+
+ return XCHAT_EAT_XCHAT;
+}
+
+