summaryrefslogtreecommitdiff
path: root/src/plugins
AgeCommit message (Collapse)Author
2022-12-25core: move `/input` jump actions to command `/buffer jump`Sébastien Helleu
Actions moved to command `/buffer jump`: * `/input jump_smart` -> `/buffer jump smart` * `/input jump_previously_visited_buffer` -> `/buffer jump prev_visited` * `/input jump_next_visited_buffer` -> `/buffer jump next_visited` * `/input jump_last_buffer_displayed` -> `/buffer jump last_displayed`
2022-12-24api: add functions string_strcmp and string_strncmpSébastien Helleu
2022-12-24api: rename char comparison functions "utf8_char*" to "string_char*"Sébastien Helleu
2022-12-19irc: fix calls to weechat_string_toupperSébastien Helleu
2022-12-19spell: return directly output of string_dyn_free without temporary variableSébastien Helleu
2022-12-19irc: return directly output of string_dyn_free without temporary variableSébastien Helleu
2022-12-18api: return newly allocated string in functions string_tolower and ↵Sébastien Helleu
string_toupper
2022-12-17irc: do not join channels in server autojoin option after reconnection to ↵Sébastien Helleu
the server (closes #560, bug #21529)
2022-12-11doc/api: Improve python example for config_new_sectionTrygve Aaberge
This updates the Python examples to include all the possible return values for the callbacks in config_new_section, like it is done in the C example. It also aligns the order of the values with the C example.
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-12-10trigger: fix variables sent to focus callback (closes #1858)Sébastien Helleu
This fixes a regression introduced in WeeChat 3.7 by commit 0f67f55098db564c82c848262540704985790129.
2022-12-10api: add function utf8_strncpySébastien Helleu
2022-11-19trigger: properly initialize variable "value" to NULLSébastien Helleu
2022-11-06trigger: display failing regex in trigger creation errorSébastien Helleu
2022-11-06trigger: use explicit command "s" in regex of default triggersSébastien Helleu
2022-11-06trigger: add regex command "y" to translate chars, set default regex command ↵Sébastien Helleu
to "s" (regex replace) (closes #1510)
2022-11-05api: add function string_translate_charsSébastien Helleu
2022-10-20trigger: execute trigger command on appropriate buffer (closes #1841)Sébastien Helleu
This affects the following hook types: - command - command_run - line - modifier - print This fixes a regression introduced in WeeChat 3.7 by commit 0f67f55098db564c82c848262540704985790129.
2022-10-16python: remove functions defined for Python < 2.6Sébastien Helleu
2022-10-15python: remove support of Python 2.xSébastien Helleu
2022-10-15api: do not expect any return value in callbacks change/delete of ↵Sébastien Helleu
config_new_option (scripting API)
2022-10-14python: Fix return types for config option callbacksTrygve Aaberge
I erroneously typed the return types for these to int in commit e0c117e14, but they should be None.
2022-10-12irc: escape backslashes in raw buffer (closes #1838)Sébastien Helleu
2022-10-09python: Include script examples in function docstringTrygve Aaberge
This makes it possible to see how functions are used without having to go to the web page. It's especially useful to see the types of the callback functions.
2022-10-08xfer: add missing include of netinet/in.hSébastien Helleu
This fixes compilation on FreeBSD 13.0.
2022-10-02python: Include constant values in python stubTrygve Aaberge
This is useful for two reasons: 1. When running unit tests for a script weechat needs to be mocked. By having the constant values available in the stub file, they can be loaded from that, instead of having to define the constants manually for the mock. 2. If you log a constant value you have to look up what it means. This makes it easier, in the same vein as PR #1824.
2022-10-01irc: set local variable "filter" when doing `/server raw xxx` with raw ↵Sébastien Helleu
buffer already opened (closes #1448)
2022-09-30trigger: add variable `${tg_hook_type}` (closes #1765)Sébastien Helleu
2022-09-29api: change type of argument object_id in upgrade_new callback from string ↵Sébastien Helleu
to integer (in scripts)
2022-09-29api: change type of argument remaining_calls in hook_timer callback from ↵Sébastien Helleu
string to integer (in scripts)
2022-09-29php: add missing arginfo_weechat_string_parse_size in legacy arginfoSébastien Helleu
2022-09-28logger: add options to rotate and compress log files (closes #314)Sébastien Helleu
New options: - logger.file.rotation_compression_level - logger.file.rotation_compression_type - logger.file.rotation_size_max
2022-09-27api: add function file_compressSébastien Helleu
2022-09-27api: add function string_parse_sizeSébastien Helleu
2022-09-26irc: fix use of uninitialized variable `ptr_nick`Sébastien Helleu
2022-09-18trigger: escape arguments with double quotes in output of `/trigger ↵Sébastien Helleu
input|output|recreate` (closes #190)
2022-09-17irc: fix message when disconnecting from server in case of high lag when ↵Sébastien Helleu
server option autoreconnect is off (closes #1708)
2022-09-17spell: allow special dict value "-" to disable spell checking on a specific ↵Sébastien Helleu
buffer (closes #1699)
2022-09-15irc: add option irc.look.display_pv_nick_changeSébastien Helleu
2022-09-10irc: replace chars "\01" by spaces in CTCP replies (closes #1819)Sébastien Helleu
This prevents any attack due to an external security issue in the Linux netfilter implementation (nf_conntrack_irc). See: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-2663
2022-09-09xfer: use larger buffer for IP addressSébastien Helleu
This removes a gcc warning about a too small buffer.
2022-09-05irc: fix display of message 350 (whois, gateway) (closes #1815)Sébastien Helleu
2022-09-03xfer: fix DCC file receive on Termux (closes #1811)Sébastien Helleu
This fixes such error displayed on Termux when receiving a DCC file: xfer: invalid address "96747949": error 8 hostname nor servname provided, or not known
2022-08-31core: rename argument "length" to "bytes" in function string_strndup (header ↵Sébastien Helleu
files) Argument was already renamed in commit f8915129bf2656623168c9f17846ac29759c13ef but it was incomplete (missing header files).
2022-08-29irc: fix target buffer of generic errors when they contain a target nick ↵Sébastien Helleu
(closes #1814)
2022-08-16script: use API function weechat_crypto_hash_file in script_repo_sha512sum_fileSébastien Helleu
2022-08-16api: add function crypto_hash_fileSébastien Helleu
2022-08-15irc: fix extract of isupport value when it is last in list and without value ↵Sébastien Helleu
(closes #1807)
2022-08-15buflist: improve help on option buflist.look.enabledSébastien Helleu
2022-08-15trigger: add elapsed time for trigger execution on monitor buffer when ↵Sébastien Helleu
trigger debug is set (closes #1806)