diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2013-03-24 18:10:21 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2013-03-24 18:10:21 +0100 |
commit | fad848bf7caff763ace7a8b88f06307feca77bac (patch) | |
tree | de4283956e5b051579b4ddccada99ddee9e4e383 /doc/it/weechat_scripting.it.txt | |
parent | a08603c24c2a2b33fe8cdcb6e591ebf4cb7bd986 (diff) | |
download | weechat-fad848bf7caff763ace7a8b88f06307feca77bac.zip |
doc: add note about constants in lua, fix lua example (scripting guide)
Diffstat (limited to 'doc/it/weechat_scripting.it.txt')
-rw-r--r-- | doc/it/weechat_scripting.it.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/it/weechat_scripting.it.txt b/doc/it/weechat_scripting.it.txt index 03c6950ea..4dee4472f 100644 --- a/doc/it/weechat_scripting.it.txt +++ b/doc/it/weechat_scripting.it.txt @@ -72,6 +72,9 @@ Lua ^^^ * Le funzioni sono chiamate con `weechat.xxx(arg1, arg2, ...)` +// TRANSLATION MISSING +* Constants in API are in fact functions, the returned value must be used as + constant (not the function itself). Tcl ^^^ @@ -336,7 +339,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") |