summaryrefslogtreecommitdiff
path: root/doc/en/weechat_plugin_api.en.adoc
diff options
context:
space:
mode:
Diffstat (limited to 'doc/en/weechat_plugin_api.en.adoc')
-rw-r--r--doc/en/weechat_plugin_api.en.adoc8
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/en/weechat_plugin_api.en.adoc b/doc/en/weechat_plugin_api.en.adoc
index 8a6f43ea4..f1751f4f7 100644
--- a/doc/en/weechat_plugin_api.en.adoc
+++ b/doc/en/weechat_plugin_api.en.adoc
@@ -2253,7 +2253,7 @@ str3 = weechat.string_input_for_buffer("//test") # "/test"
==== string_eval_expression
_WeeChat ≥ 0.4.0, updated in 0.4.2, 0.4.3, 1.0, 1.1, 1.2, 1.3, 1.6, 1.8, 2.0,
-2.2, 2.3, 2.7, 2.9, 3.1 and 3.2._
+2.2, 2.3, 2.7, 2.9, 3.1, 3.2 and 3.3._
Evaluate an expression and return result as a string.
Special variables with format `+${variable}+` are expanded (see table below).
@@ -2796,6 +2796,12 @@ expanded to last):
`+0.2+` +
`+65536+`
+| `+${random:min,max}+` +
+ _(WeeChat ≥ 3.3)_ |
+ Random integer number in the range from `min` to `max` (inclusive). |
+ `+${random:0,10}+` |
+ `+3+`
+
| `+${translate:xxx}+` +
_(WeeChat ≥ 3.2)_ |
Translated string (depends on the language used by WeeChat to display messages). |