WeeChat DevCenter

Monday, January 22 2024

Version 4.2.1

Version 4.2.1 is are available, see new bugs fixed in the ChangeLog v4.2.1.

Sunday, January 21 2024

Version 4.2.0

Version 4.2.0 is available, see new features and bugs fixed in the ChangeLog and important notes if you upgrade to this version from any older version in the Release notes.

Saturday, January 20 2024

Versions 4.0.8 and 4.1.3

Versions 4.0.8 and 4.1.3 are available, see new bugs fixed in the ChangeLog v4.0.8 and ChangeLog v4.1.3.

Sunday, December 3 2023

Versions 4.0.7 and 4.1.2

Versions 4.0.7 and 4.1.2 are available, see new bugs fixed in the ChangeLog v4.0.7 and ChangeLog v4.1.2.

Thursday, October 26 2023

Versions 4.0.6 and 4.1.1

Versions 4.0.6 and 4.1.1 are available, see new bugs fixed in the ChangeLog v4.0.6 and ChangeLog v4.1.1.

Sunday, October 15 2023

Version 4.1.0

Version 4.1.0 is available, see new features and bugs fixed in the ChangeLog and important notes if you upgrade to this version from any older version in the Release notes.

Sunday, September 24 2023

Version 4.0.5

Version 4.0.5 is available, see new features and bugs fixed in the ChangeLog.

Tuesday, August 22 2023

Version 4.0.4

Version 4.0.4 is available, it fixes the following bugs:

  • fix integer overflow when setting integer option with ++N or --N
  • fix increment/decrement of options weechat.notify.*
  • add missing tags on multiline IRC messages
  • fix redirection of IRC command /list when the reply doesn't start with message 321 (start of /list)
  • fix wrong time displayed for IRC CTCP messages received from self nick
  • remove trailing empty line in display of backlog (logger plugin)
  • fix display of non-ASCII chars after load of a script with Perl >= 5.38
  • adjust scroll after command /script go N
  • fix function string_parse_size on 32-bit systems (python and ruby)
  • fix conversion of string to IPv4 on 32-bit systems in xfer plugin
  • fix tests on function irc_join_compare_join_channel
  • fix tests of functions print_date_tag, print_y_date_tags and hook_timer on 32-bit systems

Tuesday, August 8 2023

Version 4.0.3

Version 4.0.3 is available, it fixes the following bugs:

  • fix input length and crash after delete of line
  • fix display of self IRC CTCP message containing bold attribute
  • fix memory leak in IRC message parser
  • fix switch to IRC channel manually joined when server option autojoin_dynamic is on and option irc.look.buffer_switch_autojoin is off
  • fix display of outgoing IRC notice with channel when capability "echo-message" is enabled
  • fix display of IRC CTCP messages received from relay client
  • display a warning in build of docs if a locale is missing with fallback to English for auto-generated content

Wednesday, July 12 2023

Version 4.0.2

Version 4.0.2 is available, it fixes the following bugs:

  • fix renaming of options with command /item rename
  • don't send "key_pressed" signal again for the same key press
  • don't send "key_combo_*" signals for incomplete keys
  • add key ctrl-backspace in /help key
  • keep keys ctrl-H and ctrl-? (in lower case) if they were manually bound to custom commands in a previous version

Friday, June 30 2023

Version 4.0.1

Version 4.0.1 is available, it fixes the following bugs:

  • force key "return" to command "/input return" when migrating legacy keys
  • display actual key name and command with Alt+k, remove key Alt+K (grab raw key) and associated commands /input grab_raw_key and /input grab_raw_key_command
  • check for newline characters in string_is_whitespace_char
  • do not convert option name to lower case in API functions config_set_plugin and config_set_desc_plugin
  • fix crash on quit with Guile < 3
  • reply to a IRC CTCP request sent to self nick
  • sent "QUIT" message to IRC servers connected with TLS on /upgrade

Monday, June 26 2023

Happy birthday WeeChat, 20 years!

Happy birthday WeeChat, 20 years old!

I wrote the very first line of code on June 26th, 2003, and released the first version 0.0.1 on September, 27th 2003.

The 86th release was made 2 days ago: 4.0.0

I would like to thank all contributors for the help with translations, patches and ideas of features.
All contributions and donations are much appreciated! ♥

Saturday, June 24 2023

Version 4.0.0

Version 4.0.0 is available!

WeeChat now follows a practical semantic versioning and there are breaking changes in this release, please read carefully the release notes.

See ChangeLog for the complete list of new features and bug fixes.

New major features in this release:

  • use human readable key bindings
  • use 256 colors by default
  • make many identifiers case sensitive, rename default aliases to lower case
  • display similar command names when a command is unknown
  • add item "mouse_status" in default status bar
  • rename SSL options to TLS, connect by default with TLS to IRC servers
  • improve multiline support, add multiline support in IRC and Relay plugins
  • add support of new IRC capabilities: draft/multiline, batch, echo-message (in Relay plugin as well)
  • add support of LINELEN and UTF8ONLY in IRC plugin
  • add IRC commands /action, /rules, /knock
  • display IRC STATUSMSG actions differently from standard actions on channels
  • add option "join" in command /autojoin
  • add server option "registered_mode", add fields "authentication_method" and "sasl_mechanism_used" in server
  • add "${username}" in server options "nicks" and "username", change their default values to use it
  • add infos "irc_server_cap" and "irc_server_cap_value"
  • add option irc.look.display_host_notice
  • add modifier "irc_cap_sync_req"
  • add relative move of read marker with /buffer set unread +/-N
  • add command /reset
  • add option "rename" in command /bar
  • add option "split_return" in command /input
  • add option "missing" in command /alias
  • add $& to replace all arguments with double quotes escaped in aliases
  • add options weechat.color.chat_status_disabled and weechat.color.chat_status_enabled, remove options trigger.color.trigger and trigger.color.trigger_disabled
  • improve display of color options in fset buffer, add options fset.color.color_name and fset.color.color_name_selected
  • add option logger.file.log_conditions
  • add info "logger_log_file"
  • add modifiers "relay_client_irc_in", "relay_client_irc_out1" and "relay_client_irc_out" in relay irc protocol
  • add handshake option "escape_commands" in relay weechat protocol
  • add API function config_set_version
  • many bugs fixed.

Removed in this release:

  • build with autotools (CMake now required)
  • RPM packaging
  • cpack config

New commands:

  • /action
  • /knock
  • /reset
  • /rules

New options:

  • fset.color.color_name
  • fset.color.color_name_selected
  • irc.look.display_host_notice
  • irc.server_default.registered_mode
  • logger.file.log_conditions
  • weechat.look.input_multiline_lead_linebreak
  • weechat.color.chat_status_enabled
  • weechat.color.chat_status_disabled
  • weechat.look.paste_auto_add_newline
  • weechat.color.status_name_insecure

Options changed:

  • option irc.server_default.ssl renamed to irc.server_default.tls
  • option irc.server_default.ssl_cert renamed to irc.server_default.tls_cert
  • option irc.server_default.ssl_dhkey_size renamed to irc.server_default.tls_dhkey_size
  • option irc.server_default.ssl_fingerprint renamed to irc.server_default.tls_fingerprint
  • option irc.server_default.ssl_password renamed to irc.server_default.tls_password
  • option irc.server_default.ssl_priorities renamed to irc.server_default.tls_priorities
  • option irc.server_default.ssl_verify renamed to irc.server_default.tls_verify
  • option relay.network.ssl_cert_key renamed to relay.network.tls_cert_key
  • option relay.network.ssl_priorities renamed to relay.network.tls_priorities
  • option weechat.color.status_name_ssl renamed to weechat.color.status_name_tls

Options removed:

  • trigger.color.trigger
  • trigger.color.trigger_disabled

New keys:

  • Alt+K (upper case): grab raw key and its command
  • In cursor mode:
    • letter "l" (lower case): quote focused line

Tuesday, June 13 2023

Live streaming: 20th anniversary and release of v4.0.0

On June 26th, 2023, WeeChat will turn 20!

Project started on June 26th, 2003. It has grew a lot over time, thanks to contributions and ideas from a lot of users.

Today, WeeChat has:

  • 286.778 lines of code
  • 179.994 lines of documentation
  • 12.146 commits
  • 85 versions released: 69 major, 16 patch
  • 297 feature requests open
  • 91 bugs open
  • 170 contributors — thank you all! ♥

To celebrate the 20th anniversary and the release of the next major version, a live streaming is organized on Saturday, June 24th, 7pm UTC.
Around the world: San Francisco: 12pm – Montreal: 3pm – Paris: 9pm – Tokyo: 4am (June, 25th) – Sydney: 5am (June, 25th).

URL: https://youtube.com/live/EtzdpXFEcO0

Agenda of this live session, in English and recorded:

  • History of the project
  • Demo of the new features in 4.0.0
  • Live release of 4.0.0
  • The future of WeeChat

During the live, you can ask questions or react either in youtube or in channel #weechat-live (irc.libera.chat).

I look forward to seeing many of you there!

Saturday, March 18 2023

Key bindings improvements, case sensitive identifiers, semantic versioning

Major changes are coming in the next WeeChat version, bumped to 4.0.0 (instead of 3.9, as planned initially).

Some breaking changes:

  1. key bindings improvements: using names instead of raw codes (eg: meta-left instead of meta2-1;3D)
  2. many identifiers have been made case sensitive, including commands, aliases and options
  3. build with autotools has been removed, only CMake can now be used to compile WeeChat.

There are other changes, see the ChangeLog.
Note that this version is under development and your feedback is welcome!
Please read carefully the release notes if you're testing it: Release Notes.

Cherry on the cake: WeeChat is now following a "practical" semantic versioning, a less strict version of https://semver.org/.

For more information on all major/breaking changes, see the specifications: https://specs.weechat.org/

Sunday, January 8 2023

Version 3.8

Version 3.8 is available!

As usual, many new features and bug fixes, see ChangeLog for detail.

New major features in this release:

  • add option weechat.look.chat_space_right
  • allow value "0" in buffer property "unread" to remove read marker from buffer
  • add command /allbuf
  • add command /hotlist
  • move some /input actions to commands /allbuf, /buffer and /hotlist
  • improve case convert and insensitive char comparisons
  • add color attributes "blink" and "dim" (half bright)
  • allow command /toggle to create option before setting the value, if allowed in the section
  • add signals "buffer_user_input_xxx" and "buffer_user_closing_xxx" for buffers created with /buffer add
  • add identifier in buffer lines
  • add option "unicode" in command /debug
  • add Curl options for versions 7.64.0 to 7.87.0
  • add API functions string_strcmp and string_strncmp
  • rename char comparison API functions "utf8_char*" to "string_char*"
  • return arithmetic difference between chars in API functions string_charcmp, string_charcasecmp, string_charcasecmp_range, string_strcasecmp, string_strcasecmp_range, string_strncasecmp, string_strncasecmp_range, string_strcmp_ignore_chars
  • return newly allocated string in API functions string_tolower and string_toupper
  • add API function utf8_strncpy
  • add trigger regex command "y" to translate chars, set default regex command to "s" (regex replace)
  • many bugs fixed.

New commands:

  • /allbuf
  • /hotlist

New options:

  • weechat.look.chat_space_right

Friday, October 21 2022

Version 3.7.1

Version 3.7.1 is available, it fixes a regression in trigger plugin introduced in version 3.7.

Upgrade is recommended if you use triggers (other than the default ones).

Sunday, October 9 2022

Version 3.7

Version 3.7 is available!

As usual, many new features and bug fixes, see ChangeLog for detail.

New major features in this release:

  • add option "-save" in command "/upgrade"
  • add option weechat.look.highlight_disable_regex and buffer property "highlight_disable_regex"
  • sort filters by name
  • add key Alt+Backspace to delete previous word, change key Ctrl+w to delete previous word until whitespace
  • rename API function string_build_with_split_string to string_rebuild_split_string, add arguments "index_start" and "index_end"
  • add info "uptime_current"
  • add API function crypto_hash_file
  • add support of priority in API function hook_line
  • add API function string_parse_size
  • add API function file_compress
  • add buflist variable "${hotlist_priority_number}" (integer version of "${hotlist_priority}")
  • display SETNAME command in IRC channels and private buffers, add options irc.color.message_setname and irc.look.smart_filter_setname
  • add option irc.look.display_pv_nick_change
  • add options to rotate and compress log files: logger.file.rotation_compression_level, logger.file.rotation_compression_type and logger.file.rotation_size_max
  • allow special dict value "-" to disable spell checking on a specific buffer
  • add elapsed time for trigger execution on monitor buffer when trigger debug is set, add option trigger.color.identifier
  • add trigger variable "${tg_hook_type}"
  • many bugs fixed.

New keys:

  • Alt+Backspace: delete previous word (Ctrl+w: delete previous word until whitespace)

Sunday, July 10 2022

Version 3.6

Version 3.6 is available!

As usual, many new features and bug fixes, see ChangeLog for detail.

New major features in this release:

  • add command "/item" to create custom bar items
  • add bar item "spacer"
  • add case conversion in evaluation of expressions with "lower:string" and "upper:string"
  • move detailed list of hooks from command "/plugin listfull" to "/debug hooks <plugin>"
  • allow to remove multiple filters at once with command "/filter del"
  • allow to catch multiple signals in functions hook_signal and hook_hsignal
  • rename option "save" to "apply" in IRC command "/autojoin"
  • add support of RPL_HELPSTART, RPL_HELPTXT and RPL_ENDOFHELP (IRC messages 524, 704, 705, 706)
  • add support of PHP 8.2
  • many bugs fixed.

Sunday, March 27 2022

Version 3.5

Version 3.5 is available!

As usual, many new features and bug fixes, see ChangeLog for detail.

New major features in this release:

  • search in message tags when tags are displayed with "/debug tags"
  • add support of date and tags in messages displayed in buffers with free content, add function printf_y_date_tags
  • add IRC command /autojoin, add IRC server option "autojoin_dynamic"
  • add IRC message tags in messages displayed
  • add "zstd" (Zstandard) compression in relay weechat protocol, remove option "compression" from "init" command, rename option relay.network.compression_level to relay.network.compression
  • add trigger variables "${tg_tag_irc_xxx}" containing IRC message tags
  • many bugs fixed.

Sunday, March 13 2022

Version 3.4.1

Version 3.4.1 is available, it fixes a security vulnerability: after changing gnutls options, the function used to validate certificates is not called any more, this can lead to a man-in-the-middle attack.

Upgrade is recommended for all users.

Saturday, December 18 2021

Version 3.4

Version 3.4 is available!

As usual, many new features and bug fixes, see ChangeLog for detail.

New major features in this release:

  • improve the IRC message parser
  • add command /toggle
  • add user variables in evaluation of expressions with "define:name,value"
  • add support of static arrays in hdata
  • hide key and password in command "/msg nickserv setpass nick key password"
  • add dark theme in documentation (automatic theme, following browser/desktop settings)
  • add support of Ruby 3.0
  • many bugs fixed.

Sunday, November 28 2021

Dark theme for WeeChat docs

In addition to weechat.org website, a dark theme has been added in WeeChat docs (only development docs for now: https://weechat.org/doc/devel/).
The use of this dark theme is automatic (following your desktop/browser configuration).

New dark theme (click for full size):


weechat_doc_dark.png

The light theme:


weechat_doc_light.png

Hope you like this new eye-friendly dark theme!

Sunday, September 19 2021

Version 3.3

Version 3.3 is available!

As usual, many new features and bug fixes, see ChangeLog for detail.

New major features in this release:

  • add new plugin "typing" to display users currently writing messages on IRC channel/private buffers (IRCv3 specification)
  • enable all IRC capabilities by default (if supported by server and WeeChat), change default value of option irc.server_default.capabilities to "*"
  • implement IRCv3.2 SASL authentication, add command /auth, reconnect by default to the server in case of SASL authentication failure
  • add support of capability "message-tags" and TAGMSG messages (IRCv3 specification)
  • add command /setname, add support of message and capability "setname" (IRCv3 specification)
  • add support of FAIL/WARN/NOTE IRC messages (IRCv3 specification)
  • drop support of IRC DH-BLOWFISH and DH-AES SASL mechanisms
  • add new keys to clear, remove and restore buffers in hotlist
  • add option "certs" in command /debug
  • add options "-o", "-ol", "-i" and "-il" in command "/plugin list"
  • add split of string and shell arguments in evaluation of expressions with "split:number,seps,flags,xxx" and "split_shell:number,xxx"
  • add "${re:repl_index}" to get the index of replacement in function string_eval_expression
  • add random integer number in evaluation of expressions with "random:min,max"
  • add functions string_cut and file_copy in API
  • remember insertion order in hashtables
  • add keys/values with tags in output of irc_message_parse_to_hashtable
  • add option "-parted" in command /allchan
  • allow signals "irc_raw_in" and "irc_in" to eat messages
  • many bugs fixed.

New options:

  • irc.look.display_account_message
  • irc.look.display_extended_join
  • irc.look.typing_status_nicks
  • irc.look.typing_status_self
  • typing.look.delay_purge_paused
  • typing.look.delay_purge_typing
  • typing.look.delay_set_paused
  • typing.look.enabled_nicks
  • typing.look.enabled_self
  • typing.look.input_min_chars
  • typing.look.item_max_length

New keys:

  • Alt+h, Alt+c: clear hotlist (old key was Alt+h)
  • Alt+h, Alt+m: remove current buffer from hotlist
  • Alt+h, Alt+r: restore latest hotlist removed in the current buffer
  • Alt+h, Alt+Shift+R: restore latest hotlist removed in all buffers

Saturday, September 4 2021

Version 3.2.1

Version 3.2.1 is available, it fixes a security vulnerability: a malformed websocket frame received in relay plugin can cause a crash (CVE-2021-40516).

Upgrade is recommended for all users.

Sunday, June 13 2021

Version 3.2

Version 3.2 is available!

As usual, many new features and bug fixes, see ChangeLog for detail.

New major features in this release:

  • use XDG directories by default (config, data, cache, runtime)
  • add support of IRC SASL mechanisms SCRAM-SHA-1, SCRAM-SHA-256 and SCRAM-SHA-512
  • automatically load system certificates without giving a hardcoded path to the file with certificates
  • add options to customize commands executed on system signals received (SIGHUP, SIGQUIT, SIGTERM, SIGUSR1, SIGUSR2)
  • add bar item "tls_version" and buflist format
  • add signals "cursor_start" and "cursor_end"
  • add function crypto_hmac in API
  • add translated string in evaluation of expressions with "translate:xxx"
  • add info "weechat_daemon"
  • add Python stub for WeeChat API
  • add variables "${tg_shell_argc}" and "${tg_shell_argvN}" in command trigger evaluated strings
  • many bugs fixed.

New options:

  • buflist.format.tls_version
  • irc.color.item_tls_version_ok
  • irc.color.item_tls_version_deprecated
  • irc.color.item_tls_version_insecure
  • weechat.network.gnutls_ca_system
  • weechat.network.gnutls_ca_user
  • weechat.signal.sighup
  • weechat.signal.sigquit
  • weechat.signal.sigterm
  • weechat.signal.sigusr1
  • weechat.signal.sigusr2

Options removed:

  • weechat.network.gnutls_ca_file

Saturday, June 12 2021

XDG directories

Support of XDG directories has been added in WeeChat 3.2 and these directories are now used by default.
Note: for compatibility reasons, if a legacy directory ~/.weechat exists, it is used instead of XDG directories.

The files are stored in four different directories:

  • config (eg: /home/user/.config/weechat)
  • data (eg: /home/user/.local/share/weechat)
  • cache (eg: /home/user/.cache/weechat)
  • runtime (eg: /run/user/1000/weechat).

As this led to a lot of changes in WeeChat code but also in the scripts, a new specification repository has been setup on GitHub: https://github.com/weechat/specs.we...

Please read the XDG directories specification for the complete list of changes: https://specs.weechat.org/specs/001....

Sunday, March 7 2021

Version 3.1

Version 3.1 is available!

As usual, many new features and bug fixes, see ChangeLog for detail.

New major features in this release:

  • add options weechat.look.hotlist_update_on_buffer_switch and weechat.look.read_marker_update_on_buffer_switch
  • add option sec.crypt.passphrase_command to read passphrase from an external program on startup, remove option sec.crypt.passphrase_file
  • improve debug in command /eval
  • add options "setvar" and "delvar" in command /buffer, rename option "localvar" to "listvar"
  • add buffer local variable "completion_default_template" (evaluated) to override the value of option weechat.completion.default_template
  • add option "recreate" in command /filter
  • add raw string in evaluation of expressions with "raw:xxx"
  • add evaluation of conditions in evaluation of expressions with "eval_cond:xxx"
  • add info_hashtable "secured_data"
  • add info "irc_is_message_ignored"
  • add IRC server option "default_chantypes", used when the server does not send them in message 005
  • add variable ${tg_trigger_name} in command trigger evaluated strings
  • many bugs fixed.

New options:

  • buflist.look.use_items
  • irc.server.xxx.default_chantypes
  • sec.crypt.passphrase_command
  • weechat.look.hotlist_update_on_buffer_switch
  • weechat.look.read_marker_update_on_buffer_switch

Options removed:

  • sec.crypt.passphrase_file (replaced by sec.crypt.passphrase_command)

Sunday, January 31 2021

Version 3.0.1

Version 3.0.1 is available, it fixes a crash in spell plugin with IRC color codes and two other minor bugs.

Upgrade is recommended if you enable the spell checking (not enabled by default).

Wednesday, November 11 2020

Version 3.0

Version 3.0 is available!

As usual, many new features and bug fixes, see ChangeLog for detail.

New major features in this release:

  • add option script.scripts.download_enabled (it must be explicitly set to "on" to allow download of scripts from weechat.org)
  • add option "-oerr" in command /exec to send stderr to buffer (now disabled by default)
  • allow to send text on buffers and evaluate command with commands /allchan, /allpv and /allserv
  • add option fset.look.auto_refresh
  • add variable "tg_argc" in data set by command trigger and variable "tg_trigger_name" in data set by all triggers
  • add argument "bytes" in API function string_dyn_concat
  • add API function string_color_code_size
  • add optional list of colors in infos "nick_color" and "nick_color_name"
  • irc: add pointer to irc_nick in focus of bar item "buffer_nicklist"
  • many bugs fixed.

New options:

  • fset.look.auto_refresh
  • script.scripts.download_enabled

Saturday, July 18 2020

Version 2.9

Version 2.9 is available!

As usual, many new features and bug fixes, see ChangeLog for detail.

New major features in this release:

  • add command "handshake" in weechat relay protocol and nonce to prevent replay attacks during authentication
  • add command "completion" in weechat relay protocol
  • add option relay.network.auth_timeout, add status "waiting_auth" in irc and weechat relay protocols
  • add option "color_bg_inactive" in bars
  • add bar items "buffer_nicklist_count_groups" and "buffer_nicklist_count_all"
  • add key Alt+Enter to insert a newline, set default size for input bar to 0 (automatic)
  • add a scalable WeeChat logo (SVG)
  • add base 16/32/64 encoding/decoding in evaluation of expressions with "base_encode:base,xxx" and "base_decode:base,xxx"
  • add case sensitive wildcard matching comparison operator ("==*" and "!!*") and case sensitive/insensitive include comparison operators ("==-", "!!-", "=-", "!-") in evaluation of expressions
  • add keys Alt+Shift+B and Alt+Shift+N to toggle buflist/nicklist bars
  • reload configuration files when the SIGHUP signal is received
  • add API functions to complete words in command line
  • evaluate option buflist.look.sort
  • add support of "UTF8MAPPING" in IRC server
  • display IRC "account" messages in buffers
  • evaluate arguments when a trigger of type "command" is created
  • enable again command "/guile eval"
  • fix slow send of data to relay clients when SSL is enabled
  • add CI with GitHub Actions
  • run tests on plugins only if the plugins are enabled and compiled
  • GnuTLS is now a required dependency
  • disable build of JavaScript plugin by default, remove Debian package "weechat-javascript"
  • many bugs fixed.

New options:

  • irc.color.message_account
  • irc.look.smart_filter_account
  • relay.network.auth_timeout
  • relay.network.nonce_size
  • relay.network.password_hash_algo
  • relay.network.password_hash_iterations
  • weechat.bar.xxx.color_bg_inactive (one color per bar)

New keys:

  • Alt+Enter: insert a newline
  • Alt+Shift+B: toggle buflist
  • Alt+Shift+N: toggle nicklist bar

Sunday, March 29 2020

Version 2.8

Version 2.8 is available!

As usual, many new features and bug fixes, see ChangeLog for detail.

New major features in this release:

  • add variable "old_full_name" in buffer, set during buffer renaming
  • add debug option "-d" in command /eval
  • add functions crypto_hash and crypto_hash_pbkdf2 in plugin API
  • add infos "auto_connect" and "weechat_headless"
  • add pointer "window" in bar item evaluation (buflist)
  • add support of fake IRC servers (no I/O, for testing purposes)
  • accept hash of password in init command of weechat relay protocol with option "password_hash" (PBKDF2, SHA256, SHA512)
  • reject client with weechat relay protocol if password or totp is received in init command but not set in WeeChat
  • add support of Ruby 2.7
  • add support of PHP 7.4
  • many bugs fixed.

Thursday, February 20 2020

Version 2.7.1

Version 2.7.1 is available, it fixes three security vulnerabilities:

Upgrade is recommended for all users.

Sunday, December 8 2019

Version 2.7

Version 2.7 is available!

As usual, many new features and bug fixes, see ChangeLog for detail.

New major features in this release:

  • add option logger.file.color_lines (support of ANSI color codes in log files)
  • add filters on IRC raw buffer
  • add IRC server option "ssl_password"
  • add option irc.look.display_pv_warning_address
  • add options irc.color.message_kick and irc.color.reason_kick
  • add option xfer.file.download_temporary_suffix
  • add option weechat.look.nick_color_hash_salt
  • add different WeeChat icons sizes
  • add calculation of expression in evaluation of expressions with "calc:xxx"
  • add optional default path (evaluated) in completion "filename"
  • add modifier "color_encode_ansi"
  • add support of Guile 2.2
  • add support of Python 3.8
  • many bugs fixed.

New options:

  • irc.look.display_pv_warning_address
  • irc.color.message_kick
  • irc.color.reason_kick
  • irc.server_default.charset_message
  • irc.server_default.ssl_password
  • logger.file.color_lines
  • weechat.look.nick_color_hash_salt
  • xfer.file.download_temporary_suffix

Options removed:

  • irc.network.channel_encode (replaced by irc.server_default.charset_message)

Sunday, September 8 2019

Version 2.6

Version 2.6 is available!

As usual, many new features and bug fixes, see ChangeLog for detail.

New major features in this release:

  • use Python 3 by default
  • add support of 32767 color pairs
  • add option "close" in command /window
  • add infos "term_colors" and "term_color_pairs"
  • add infolist "buflist" with list of buffer pointers
  • evaluate option exec.command.shell, change default value to "${env:SHELL}"
  • add filters "h=xxx" and "he=xxx" to filter options by description in fset buffer (translated or in English)
  • make command char optional in server option "command"
  • remove default aliases /ame and /amsg
  • many bugs fixed.

Thursday, June 6 2019

Version 2.5

Version 2.5 is available!

As usual, many new features and bug fixes, see ChangeLog for detail.

New major features in this release:

  • add support of UNIX domain sockets in relay plugin
  • add option relay.weechat.commands
  • add trigger hooks "info" and "info_hashtable"
  • add option xfer.network.speed_limit_recv
  • add option weechat.look.buffer_time_same
  • add option weechat.look.prefix_same_nick_middle
  • add option "addreplace" in command /filter
  • add bar items "irc_nick", "irc_host" and "irc_nick_host"
  • add functions command_options and string_match_list in plugin API
  • rename aspell plugin to spell
  • use getopt to parse command line arguments
  • many bugs fixed.

New options:

  • relay.weechat.commands
  • weechat.look.buffer_time_same
  • weechat.look.prefix_same_nick_middle
  • xfer.network.speed_limit_recv

Sunday, February 17 2019

Version 2.4

Version 2.4 is available!

As usual, many new features and bug fixes, see ChangeLog for detail.

New major features in this release:

  • add command line option "-t" (or "--temp-dir") to create a temporary WeeChat home (deleted on exit)
  • add support of Time-based One-Time Password (TOTP), add infos "totp_generate" and "totp_validate", add support of TOTP as second authentication factor in weechat protocol (relay plugin)
  • add buflist variable ${number2}, always set with the indented buffer number
  • add option exec.command.shell to customize the shell used with /exec -sh
  • add support of close frame in websocket connection (relay plugin)
  • add functions string_base_encode and string_base_decode in API, remove functions string_encode_base64 and string_decode_base64
  • add default keys Ctrl+F11/F12 to scroll up/down one page in nicklist (same action as F11/F12)
  • add default buflist keys Ctrl+F1/F2 to scroll up/down one page in buflist (same action as F1/F2)
  • many bugs fixed.

New options:

  • exec.command.shell
  • relay.network.totp_secret
  • relay.network.totp_window

New keys:

  • Ctrl+F1/F2: scroll up/down one page in buflist
  • Ctrl+F11/F12: scroll up/down one page in nicklist

Monday, January 14 2019

Support of TOTP

TOTP (Time-based One-Time Password) support has been added in WeeChat, which can now generate and check TOTP validity.

A TOTP is generated with:

  • the secret (encoded in base 32),
  • the time (by default 0, which is the current time),
  • the number of digits (4 to 10 digits are supported, 6 is the default and recommended value).

Relay plugin

The TOTP can be used as second authentication factor in the relay plugin, with two new options:

  • relay.network.totp_secret: the TOTP secret, encoded in base 32
  • relay.network.totp_window: the allowed window: number of TOTP allowed before and after the current time window.

For example to set the secret using secured data (just replace "xxxxx" by your secret in base 32):

/secure set relay_totp_secret xxxxx
/set relay.network.totp_secret "${sec.data.relay_totp_secret}"

Then your relay client must support and send the TOTP value, in addition to the password, in the "init" command:

init password=secretpassword,totp=123456

If the password is valid and that TOTP is valid for the current time, the authentication is successful.

Infos / eval

You can also generate or validate TOTP with two new infos in WeeChat:

  • totp_generate: generate a TOTP
  • totp_validate: validate a TOTP

For example to show the value of TOTP for the secret "secretbase32", current time, with 6 digits:

/eval -n ${info:totp_generate,secretbase32,0,6}

Documentation

You can read more about TOTP in the docs:

Sunday, October 21 2018

Version 2.3

Version 2.3 is available!

As usual, many new features and bug fixes, see ChangeLog for detail.

New major features in this release:

  • add hook "line"
  • add option "-P" (or "--plugins") to customize the plugins to load at startup
  • allow multiple options "-r" ("--run-command") in command line arguments
  • allow allow partial buffer name and multiple arguments in command /buffer close
  • allow specifying buffer number/name for /buffer localvar
  • allow creation of temporary variables with the regex in trigger plugin
  • add real IP in client description in relay plugin
  • add repeat of string in evaluation of expressions with "repeat:count,string"
  • many bugs fixed.

Saturday, July 14 2018

Version 2.2

Version 2.2 is available!

As usual, many new features and bug fixes, see ChangeLog for detail.

New major features in this release:

  • add support of list options in curl
  • allow merge of buffers by name in command /buffer
  • add reverse of string in evaluation of expressions with "rev:"
  • add indexed ban list and completion for /unban and /unquiet (IRC plugin)
  • add support for IRCv3.2 Client Capability Negotiation
  • add support for IRCv3.2 invite-notify
  • add support for IRCv3.2 chghost, add options irc.look.smart_filter_chghost and irc.color.message_chghost
  • add option xfer.network.send_ack
  • add support of Python 3.7
  • fix memory leaks scripting plugins
  • many bugs fixed.

New options:

  • irc.color.message_chghost
  • irc.look.smart_filter_chghost
  • xfer.network.send_ack

Sunday, March 18 2018

Version 2.1

Version 2.1 is available!

As usual, many new features and bug fixes, see ChangeLog for detail.

New major features in this release:

  • add a headless mode (new binary: "weechat-headless")
  • add options "-newbuffer", "-free", "-switch" and "-y" in command /print (with support of buffers with free content)
  • add option "add" in command /buffer
  • add option weechat.completion.partial_completion_templates to force partial completion on specific templates
  • add IRC server option "split_msg_max_length"
  • add option logger.file.fsync
  • add option logger.look.backlog_conditions
  • add configuration file for each script plugin ("python.conf", "perl.conf", ...)
  • add "eval" option in script commands and info "xxx_eval" (python, perl, ruby, lua and guile)
  • add infos "xxx_interpreter" and "xxx_version" in script plugins
  • add option "version" in script commands
  • display the script name in stdout/stderr output from scripts
  • many bugs fixed.

New options:

  • python.look.check_license
  • python.look.eval_keep_context
  • perl.look.check_license
  • perl.look.eval_keep_context
  • ruby.look.check_license
  • ruby.look.eval_keep_context
  • lua.look.check_license
  • lua.look.eval_keep_context
  • tcl.look.check_license
  • tcl.look.eval_keep_context
  • guile.look.check_license
  • guile.look.eval_keep_context
  • javascript.look.check_license
  • javascript.look.eval_keep_context
  • php.look.check_license
  • php.look.eval_keep_context
  • irc.server_default.split_msg_max_length
  • logger.file.fsync
  • logger.look.backlog_conditions
  • weechat.completion.partial_completion_templates

Wednesday, December 20 2017

Version 2.0.1

Version 2.0.1 is available, it fixes a Python API bug in functions hook_fd and hook_connect.

Sunday, December 3 2017

Version 2.0

Version 2.0 is available!

As usual, many new features and bug fixes, see ChangeLog for detail.

New major features in this release:

  • new plugin "fset" (fast set of WeeChat and plugins options)
  • new plugin "php" (support of PHP scripts)
  • add option buflist.look.add_newline
  • add two new bar items "buflist2" and "buflist3" using the same format configuration options
  • add flag "input_get_empty" in buffer
  • add signals "buffer_filters_enabled" and "buffer_filters_disabled"
  • support loading of plugins from path in environment variable "WEECHAT_EXTRA_LIBDIR"
  • add infolist "alias_default" (list of default aliases)
  • make value optional in command /buffer set
  • allow floating point and hexadecimal numbers in comparison of evaluated values
  • add option weechat.look.save_config_with_fsync
  • add support of prefix "quiet:" in function key_unbind() to quietly remove keys
  • add argument "recurse_subdirs" in function exec_on_files()
  • add local variable "filter" in the script buffer
  • remove recursive evaluation of extra variables in buflist
  • change type of arguments status/gnutls_rc/sock in hook_connect() callback from string to integer (in scripting API)
  • change type of argument fd in hook_fd() callback from string to integer (in scripting API)
  • fix display bugs with filtered lines
  • fix display of nicks in nicklist when they are in a group with sub-groups
  • call the config hook when options are renamed or removed
  • fix parsing of CAP command in relay/irc
  • many bugs fixed.

New configuration files:

  • fset.conf

New options:

  • buflist.look.add_newline
  • plugins.var.php.check_license
  • weechat.look.save_config_with_fsync

New keys:

  • in mouse context:
    • left button on fset buffer: change current line
    • right button on fset buffer: toggle boolean or edit value
    • right button + drag & drop left/right: change value
    • right button + drag & drop up/down: mark/unmark options

Saturday, November 4 2017

Split of scripting Debian packages

Starting on Sunday, Nov 3rd 2017 at 02:00 (CET), the Debian packaging will change in weechat.org Debian/Ubuntu/Raspbian repositories: the scripting plugins are split into multiple packages, so that Perl, Python, Ruby, ... can be installed separately.

Only development packages will be updated, the released versions (1.9.1 and earlier) will not be updated.

Important: if you are using the WeeChat development packages from weechat.org, you will have to install manually the scripting packages (according to the languages you'll use in WeeChat).

Old packaging (until 2017-11-04):

  • weechat
  • weechat-core
  • weechat-curses
  • weechat-dbg
  • weechat-dev
  • weechat-doc
  • weechat-plugins
  • weechat-plugins (14 plugins):
    • aspell
    • exec
    • fifo
    • guile
    • javascript
    • lua
    • perl
    • php
    • python
    • relay
    • ruby
    • script
    • tcl
    • trigger

New packaging, with 8 new packages:

  • weechat
  • weechat-core
  • weechat-curses
  • weechat-dbg
  • weechat-dev
  • weechat-doc
  • weechat-plugins
  • weechat-plugins (6 plugins remaining):
    • aspell
    • exec
    • fifo
    • relay
    • script
    • trigger
  • weechat-python
  • weechat-perl
  • weechat-ruby
  • weechat-lua
  • weechat-tcl
  • weechat-guile
  • weechat-javascript
  • weechat-php

GitHub issue: https://github.com/weechat/weechat/issues/1085

Tuesday, October 17 2017

Automatic tests of scripting API

Automatic tests of the scripting API have been added a few days ago. For now only a small part of API functions are checked.

This is done with 3 new Python scripts in directory tests/scripts/python:

  • unparse.py: convert Python code to other languages (including Python itself)
  • testapigen.py: generate scripts in all languages to test the API
  • testapi.py scripting API tests

The script unparse.py can convert Python code to other languages: Python, Perl, Ruby, Lua, TCL, Guile, JavaScript and PHP (new plugin in version 2.0). The Python code is first parsed using AST (ast.parse), and then this tree is recursively scanned to produce code in Python or another language (note: only part of AST is supported, the minimum for WeeChat tests).

Example of code conversion in other languages:

$ ./unparse.py --language all
Enter the code to convert (Enter + ctrl+D to end)

def test_list_new():
    ptr_list = weechat.list_new()
    check(ptr_list != '')
    check(weechat.list_size(ptr_list) == 0)

python:
def test_list_new():
    ptr_list = weechat.list_new()
    check(ptr_list != '')
    check(weechat.list_size(ptr_list) == 0)

perl:
sub test_list_new
{
    $ptr_list = weechat::list_new();
    check($ptr_list ne "");
    check(weechat::list_size($ptr_list) == 0);
}

ruby:
def test_list_new
    ptr_list = weechat.list_new()
    check(ptr_list != '')
    check(weechat.list_size(ptr_list) == 0)
end

lua:
function test_list_new()
    ptr_list = weechat.list_new()
    check(ptr_list ~= '')
    check(weechat.list_size(ptr_list) == 0)
end

tcl:
proc test_list_new {} {
    set ptr_list [weechat::list_new]
    check [expr {$ptr_list ne ""}]
    check [expr {[weechat::list_size $ptr_list] == 0}]
}

guile:
(define (test_list_new)
    (let ((ptr_list (weechat:list_new)))
        (begin
            (check (string<> ptr_list ""))
            (check (= (weechat:list_size ptr_list) 0))
        )
    )
)

javascript:
function test_list_new() {
    ptr_list = weechat.list_new()
    check(ptr_list != '')
    check(weechat.list_size(ptr_list) == 0)
}

php:
function test_list_new()
{
    $ptr_list = weechat_list_new();
    check($ptr_list != "");
    check(weechat_list_size($ptr_list) == 0);
}

The script testapigen.py generates scripts in all supported languages. These scripts are loaded in WeeChat during tests, and print the results of tests, for example in Python:

>>> Running command: /script load -q ./tmp_weechat_test/testapi/testapi.py
>>> Running command: /testapi.py
>>>
>>> ------------------------------
>>> Testing python API
  > TESTS: 57
  > test_plugins
      TEST OK: weechat.plugin_get_name('') == 'core'
      TEST OK: weechat.plugin_get_name(weechat.buffer_get_pointer(weechat.buffer_search_main(), 'plugin')) == 'core'
  > test_strings
      TEST OK: weechat.charset_set('iso-8859-15') == 1
      TEST OK: weechat.charset_set('') == 1
      TEST OK: weechat.iconv_to_internal('iso-8859-15', 'abc') == 'abc'
      TEST OK: weechat.iconv_from_internal('iso-8859-15', 'abcd') == 'abcd'
      TEST OK: weechat.gettext('abcdef') == 'abcdef'
      TEST OK: weechat.ngettext('file', 'files', 1) == 'file'
      TEST OK: weechat.ngettext('file', 'files', 2) == 'files'
      TEST OK: weechat.strlen_screen('abcd') == 4
      TEST OK: weechat.string_match('abcdef', 'abc*', 0) == 1
      TEST OK: weechat.string_eval_path_home('test ${abc}', {}, {'abc': '123'}, {}) == 'test 123'
      TEST OK: weechat.string_mask_to_regex('test*mask') == 'test.*mask'
      TEST OK: weechat.string_has_highlight('my test string', 'test,word2') == 1
      TEST OK: weechat.string_has_highlight_regex('my test string', 'test|word2') == 1
      TEST OK: weechat.string_remove_color('test', '?') == 'test'
      TEST OK: weechat.string_is_command_char('/test') == 1
      TEST OK: weechat.string_is_command_char('test') == 0
      TEST OK: weechat.string_input_for_buffer('test') == 'test'
      TEST OK: weechat.string_input_for_buffer('/test') == ''
      TEST OK: weechat.string_input_for_buffer('//test') == '/test'
      TEST OK: weechat.string_eval_expression('100 > 50', {}, {}, {'type': 'condition'}) == '1'
      TEST OK: weechat.string_eval_expression('${buffer.full_name}', {}, {}, {}) == 'core.weechat'
  > test_lists
      TEST OK: ptr_list != ''
      TEST OK: weechat.list_size(ptr_list) == 0
      TEST OK: weechat.list_size(ptr_list) == 1
      TEST OK: weechat.list_size(ptr_list) == 2
      TEST OK: weechat.list_search(ptr_list, 'abc') == item_abc
      TEST OK: weechat.list_search(ptr_list, 'def') == item_def
      TEST OK: weechat.list_search(ptr_list, 'ghi') == ''
      TEST OK: weechat.list_search_pos(ptr_list, 'abc') == 0
      TEST OK: weechat.list_search_pos(ptr_list, 'def') == 1
      TEST OK: weechat.list_search_pos(ptr_list, 'ghi') == -1
      TEST OK: weechat.list_casesearch(ptr_list, 'abc') == item_abc
      TEST OK: weechat.list_casesearch(ptr_list, 'def') == item_def
      TEST OK: weechat.list_casesearch(ptr_list, 'ghi') == ''
      TEST OK: weechat.list_casesearch(ptr_list, 'ABC') == item_abc
      TEST OK: weechat.list_casesearch(ptr_list, 'DEF') == item_def
      TEST OK: weechat.list_casesearch(ptr_list, 'GHI') == ''
      TEST OK: weechat.list_casesearch_pos(ptr_list, 'abc') == 0
      TEST OK: weechat.list_casesearch_pos(ptr_list, 'def') == 1
      TEST OK: weechat.list_casesearch_pos(ptr_list, 'ghi') == -1
      TEST OK: weechat.list_casesearch_pos(ptr_list, 'ABC') == 0
      TEST OK: weechat.list_casesearch_pos(ptr_list, 'DEF') == 1
      TEST OK: weechat.list_casesearch_pos(ptr_list, 'GHI') == -1
      TEST OK: weechat.list_get(ptr_list, 0) == item_abc
      TEST OK: weechat.list_get(ptr_list, 1) == item_def
      TEST OK: weechat.list_get(ptr_list, 2) == ''
      TEST OK: weechat.list_string(item_def) == 'def2'
      TEST OK: weechat.list_next(item_abc) == item_def
      TEST OK: weechat.list_next(item_def) == ''
      TEST OK: weechat.list_prev(item_abc) == ''
      TEST OK: weechat.list_prev(item_def) == item_abc
      TEST OK: weechat.list_size(ptr_list) == 1
      TEST OK: weechat.list_get(ptr_list, 0) == item_def
      TEST OK: weechat.list_get(ptr_list, 1) == ''
      TEST OK: weechat.list_size(ptr_list) == 0
  > TESTS END

>>> Tests python: 57 tests, 57 OK, 0 errors, 0 unexpected messages, 9 ms

Saturday, September 23 2017

Version 1.9.1

Version 1.9.1 is available, it fixes a security vulnerability: a crash can happen in logger plugin when converting date/time specifiers in file mask. Two other bugs are fixed as well in buflist and relay plugins.

Upgrade is recommended for all users.

Sunday, June 25 2017

Version 1.9

Version 1.9 is available!

As usual, many new features and bug fixes, see ChangeLog for detail.

New major features in this release:

  • improve speed of nicklist bar item callback
  • add auto scroll of buflist bar with new option buflist.look.auto_scroll
  • add option buflist.format.name
  • add variables ${format_name}, ${current_buffer} and ${merged} in buflist
  • display a warning in buflist when the script buffers.pl is loaded
  • add server/channel pointers in trigger IRC callbacks
  • add API functions config_option_get_string and hdata_compare
  • fix bind of Space key
  • many bugs fixed.

New options:

  • buflist.format.name
  • buflist.look.auto_scroll

New keys:

  • F1/F2: scroll buflist bar

Saturday, May 13 2017

Version 1.8

Version 1.8 is available!

As usual, many new features and bug fixes, see ChangeLog for detail.

Important: please read the release notes if you are upgrading to this version (from any other version).

New major features in this release:

  • add option weechat.completion.nick_case_sensitive
  • add wilcard matching operator, cut of string and ternary operator in evaluation of expressions
  • add resize of window parents with /window resize (h/v)size
  • add plugin "buflist" (bar with list of buffers)
  • add arraylist and dynamic string functions in API
  • add option "open" in command /server
  • add signal "irc_server_lag_changed" and store the lag in the server buffer (local variable)
  • add aspell options to control delimiters in suggestions
  • add option "-include" in commands /allchan, /allpv and /allserv
  • many bugs fixed.

New options:

  • aspell.color.suggestion_delimiter_dict
  • aspell.color.suggestion_delimiter_word
  • aspell.look.suggestion_delimiter_dict
  • aspell.look.suggestion_delimiter_word
  • weechat.completion.nick_case_sensitive

Options changed:

  • option aspell.color.suggestions renamed to aspell.color.suggestion

Options removed:

  • script.scripts.url_force_https (now the option script.scripts.url uses HTTPS by default)

New keys:

  • in mouse context:
    • control key + wheel on buflist bar: change current buffer
    • mouse buttons on buflist bar: change current buffer or move buffers in list

Saturday, April 22 2017

Version 1.7.1

Version 1.7.1 is available, it fixes a security problem: a crash can happen in IRC plugin when parsing the filename received via DCC.

Upgrade is recommended for all users.

Sunday, January 15 2017

Version 1.7

Version 1.7 is available!

As usual, many new features and bug fixes, see ChangeLog for detail.

Important: please read the release notes if you are upgrading to this version (from any other version).

New major features in this release:

  • add option weechat.look.align_multiline_words
  • add option "time" in command /debug
  • add infos "uptime" and "pid"
  • add optional arguments in completion template
  • add irc server option "usermode"
  • add tag "self_msg" on self messages
  • add configuration file fifo.conf for fifo plugin
  • add option "-oc" in command /exec
  • many bugs fixed.

New options:

  • fifo.file.enabled
  • fifo.file.path
  • irc.server_default.usermode (and same option in servers)
  • weechat.look.align_multiline_words

Options changed:

  • option plugins.var.fifo.fifo renamed to fifo.file.enabled (type changed from string to boolean)

- page 1 of 3