summaryrefslogtreecommitdiff
path: root/doc/sr/weechat_scripting.sr.adoc
AgeCommit message (Collapse)Author
2022-12-11scripts: Send null values to config section callbacksTrygve Aaberge
The callback_read and callback_create_option functions in the scripting APIs always get the value as a string, never as null. This means that if the value is null, there is no way for the script to distinguish this from an empty string for string options. This makes it impossible to properly make options with fallback values, like the irc server and server_default options, as far as I can see. All the scripting languages except Tcl use that language's equivalent for null. For JavaScript which has both null and undefined, null is used. For Tcl, the magic null string defined in commit 197a7a01e is used and the documentation is updated to describe that. I tested this with these scripts: https://gist.github.com/trygveaa/2d49c609addf9773d2ed16e15d1e3447 You can load all of those scripts and see the result with this command (assuming you have the scripts in the current directory): weechat -t -r "/filter add script * * script; /script load $(echo script_config.*)"
2022-10-15python: remove support of Python 2.xSébastien Helleu
2022-09-27api: add function string_parse_sizeSébastien Helleu
2022-09-11core: Update Serbian translationIvan Pešić
Includes documentation update.
2022-07-22doc: use non-breaking spaces before links to notesSébastien Helleu
2022-07-22doc/scripting: add missing fields "paramN" and "num_params" in output of ↵Sébastien Helleu
"irc_message_parse" These new fields were added in version 3.4 with major improvements of the IRC message parser.
2022-07-05core/doc: Update Serbian translationIvan Pešić
2022-06-27doc/scripting: add arrow and open external links in new tabSébastien Helleu
2022-06-23doc: change formatting in asciidoctor tablesSébastien Helleu
2022-06-18doc: add trailing slashes in URLsSébastien Helleu
2022-03-23doc: use unicode symbol for greater-than or equal toSébastien Helleu
2022-03-22doc: update Serbian translationsIvan Pešić
2022-03-13api: add function buffer_new_props (closes #1759)Sébastien Helleu
2022-03-12dev/scripting: fix typoSébastien Helleu
2022-03-12doc/scripting: translate note about Tcl constant $::weechat::WEECHAT_NULLSébastien Helleu
2022-03-07doc: fix syntax highlighting in Serbian docsSébastien Helleu
2022-02-21doc/scripting: fix column size in tablesSébastien Helleu
2022-01-30core: add support of date and tags in messages displayed in buffers with ↵Sébastien Helleu
free content, add function printf_y_date_tags (closes #1746)
2022-01-21doc: Update Serbian translationIvan Pešić
2022-01-16doc: add example of hook_process with a script function (scripting guide)Sébastien Helleu
2021-09-04core: update Serbian translationsIvan Pešić
2021-06-27doc: update Serbian translationsIvan Pešić
2021-06-24irc: add keys/values with tags in output of irc_message_parse_to_hashtable ↵Sébastien Helleu
(issue #1654) Key is "tag_xxx" (where "xxx" is the name of tag) and value is the unescaped tag value.
2021-06-13doc: add Serbian translationseevan78