summaryrefslogtreecommitdiff
path: root/doc/en
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2013-03-24 19:56:43 +0100
committerSebastien Helleu <flashcode@flashtux.org>2013-03-24 19:56:43 +0100
commitff26a8d550858822904aff412784ae62132435d3 (patch)
tree344e827cf5bebbbad1dd6103b88df682ca69511b /doc/en
parentfad848bf7caff763ace7a8b88f06307feca77bac (diff)
downloadweechat-ff26a8d550858822904aff412784ae62132435d3.zip
Revert "doc: add note about constants in lua, fix lua example (scripting guide)"
This reverts commit fad848bf7caff763ace7a8b88f06307feca77bac.
Diffstat (limited to 'doc/en')
-rw-r--r--doc/en/weechat_scripting.en.txt4
1 files changed, 1 insertions, 3 deletions
diff --git a/doc/en/weechat_scripting.en.txt b/doc/en/weechat_scripting.en.txt
index eed6c4965..32e3859a3 100644
--- a/doc/en/weechat_scripting.en.txt
+++ b/doc/en/weechat_scripting.en.txt
@@ -70,8 +70,6 @@ Lua
^^^
* Functions are called with `weechat.xxx(arg1, arg2, ...)`
-* Constants in API are in fact functions, the returned value must be used as
- constant (not the function itself).
Tcl
^^^
@@ -325,7 +323,7 @@ Weechat.hook_timer(1000, 0, 1, "timer_cb", "test");
----------------------------------------
function timer_cb(data, remaining_calls)
weechat.print("", "timer! data="..data)
- return weechat.WEECHAT_RC_OK()
+ return weechat.WEECHAT_RC_OK
end
weechat.hook_timer(1000, 0, 1, "timer_cb", "test")