summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2022-03-12scripts: allow null values in config_new_optionTrygve Aaberge
The plugin API function config_new_option accepts null as the default_value and/or value however the scripting APIs (except for lua) didn't allow sending null as a parameter value, so it was impossible to use it this way. This allows sending a null value for these parameters. Lua already supported sending in nil for these parameters and it works as expected, so nothing is changed for this plugin. For Guile you can now send in #nil, for JavaScript null or undefined, for Perl undef, for PHP NULL, for Python None, for Ruby nil and for Tcl $::weechat::WEECHAT_NULL. In all of these languages except Tcl this is the special value indicating a missing value. However Tcl only has one type, string, so it doesn't have a null value. Therefore I created a constant with the value `\uFFFF\uFFFF\uFFFFWEECHAT_NULL\uFFFF\uFFFF\uFFFF` which is used instead. This is very unlikely to appear unintentionally. Using the unicode code point \uFFFF was suggested on https://wiki.tcl-lang.org/page/null. I tested this with these scripts: https://gist.github.com/trygveaa/f91977dde5d2876d502bf55fbf9b50cc
2022-03-11irc: add option "sort" in command /autojoinSébastien Helleu
2022-03-10irc: update translationsSébastien Helleu
2022-03-10irc: display only one message in /autojoin command outputSébastien Helleu
2022-03-10irc: fix add of same channel with and without key in the array listSébastien Helleu
2022-03-10irc: rename server option "autojoin_record" to "autojoin_dynamic"Sébastien Helleu
2022-03-10irc: add command /autojoinSébastien Helleu
2022-03-10irc: add server option "autojoin_record"Sébastien Helleu
2022-03-06guile: remove disabling of guile gmp allocator with Guile ≥ 3.0.8Sébastien Helleu
This fixes the compilation warning: weechat-guile.c: In function ‘weechat_plugin_init’: weechat-guile.c:1270:5: warning: ‘scm_install_gmp_memory_functions’ is deprecated [-Wdeprecated-declarations]
2022-02-28irc: fix display of message 901 (you are now logged out) (closes #1758)Sébastien Helleu
2022-02-21logger: split function logger_backlog into two functionsSébastien Helleu
2022-02-20doc/api: Add missing parameter to python prototype for config_new_sectionTrygve Aaberge
2022-02-20scripts: auto-load scripts with supported extensions only (closes #1698)Sébastien Helleu
2022-02-19irc: replace calls to strndup by weechat_strndupSébastien Helleu
2022-02-19core: replace calls to strndup by string_strndupSébastien Helleu
2022-02-19core: call strdup in string_strndup if bytes equals strlen of stringSébastien Helleu
2022-02-14doc/api: add missing type for argument "count" in Python prototype of ↵Sébastien Helleu
function ngettext
2022-02-10irc: fix parsing of message 223 (m_filter) sent by InspIRCd server (closes ↵Sébastien Helleu
#1751)
2022-01-30core: search in message tags when tags are displayed with /debug tagsSé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-30doc/api: fix type of parameter "date" in script prototype of function ↵Sébastien Helleu
prnt_date_tags
2022-01-28core: move functions from gui-chat.c to gui-line.cSébastien Helleu
Functions moved and renamed: - gui_chat_build_string_prefix_message -> gui_line_build_string_prefix_message - gui_chat_build_string_message_tags -> gui_line_build_string_message_tags
2022-01-28core: use dynamic string in function gui_chat_build_string_message_tagsSébastien Helleu
2022-01-28core: use dynamic string in function gui_chat_build_string_prefix_messageSébastien Helleu
2022-01-26core: check that utf_char is not NULL in gui chat functionsSébastien Helleu
2022-01-26core: set prefix to NULL when clearing a line on a buffer with free contentSébastien Helleu
2022-01-26core: fix memory leak when removing a line on a buffer with free contentSébastien Helleu
2022-01-23Remove old and unused config option weechat.plugin.debugTrygve Aaberge
As far as I can see, this option is not used anywhere and should have been removed in commit 6e69f7f3c.
2022-01-22python: fix crash in hook callbacks after script loading failure (closes #1740)Sébastien Helleu
2022-01-17core: update copyright datesSébastien Helleu
2022-01-15xfer: fix auto-accept of server/nick when the server name contains UTF-8 ↵Sébastien Helleu
chars (issue #1739)
2022-01-15spell: fix comparison of URL prefix with UTF-8 chars (issue #1739)Sébastien Helleu
There is no problem in practice because the possible URL prefixes are hardcoded in the spell plugin and don't contain any UTF-8 char on more than one byte.
2022-01-15relay: fix comparison of server nonce with UTF-8 chars (issue #1739)Sébastien Helleu
There is no problem in practice because this server nonce is generated by WeeChat itself and encoded to base64, so it never contains any UTF-8 char on more than one byte.
2022-01-15irc: fix completion of channel topic with UTF-8 chars (issue #1739)Sébastien Helleu
2022-01-15api: fix add of infolist items in hashtable when prefix contains UTF-8 chars ↵Sébastien Helleu
in function hashtable_add_from_infolist (issue #1739)
2022-01-15core: fix search of commands with UTF-8 chars in name when option ↵Sébastien Helleu
weechat.look.command_incomplete is on (issue #1739)
2022-01-15trigger: fix search of triggers with UTF-8 chars in name (issue #1739)Sébastien Helleu
2022-01-14core: rename argument "length" to "bytes" in function string_strndupSébastien Helleu
2022-01-06irc: use default callback in case of missing parameters in messages ↵Sébastien Helleu
311/312/327 (whois) and 314 (whowas)
2022-01-06irc: add macro to run another protocol callbackSébastien Helleu
2022-01-05irc: fix parsing of message 338 (whois, host) sent by Rizon server (closes ↵Sébastien Helleu
#1737)
2022-01-04irc: fix display of message 344 received as whois geo info (closes #1736)Sébastien Helleu
2021-12-30trigger: add variables `${tg_tag_irc_xxx}` containing IRC message tags ↵Sébastien Helleu
(issue #1680)
2021-12-30irc: add IRC message tags in messages displayed (closes #1680)Sébastien Helleu
2021-12-28core: fix display of hotlist in buflist after changing value of option ↵Sébastien Helleu
weechat.look.hotlist_sort (closes #1733) The "hotlist" pointer in buffers was lost, it is now set again after switching to the newly sorted hotlist.
2021-12-25relay: improve help on option relay.network.compressionSébastien Helleu
2021-12-24relay: add zstd compression in weechat protocolSébastien Helleu
Option relay.network.compression_level is renamed to relay.network.compression and is now a percentage between 0 (no compression) to 100 (best compression, slowest). Compression is now disabled by default in weechat protocol and must be enabled via the `handshake` command (option `compression` has been removed from `init` command).
2021-12-23irc: fix display of IRC numeric messages with no parametersSébastien Helleu
For example this MOTD message is properly displayed (empty line): :server.example.com 372 nick :
2021-12-03core: fix typo in weechat --helpSébastien Helleu
2021-11-21core: fix detection of Ruby 3.0 on macOS (issue #1721)Sébastien Helleu