Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-03-17 | api: add support of pointer names in function string_eval_expression (direct ↵ | Sébastien Helleu | |
and in hdata) These two formats are now supported, if "pointer_name" is present in the "pointers" hashtable: * "${pointer_name}": value of pointer (example: "0x1234abcd") * ${buffer[pointer_name].full_name}: use of a pointer name instead of pointer value or list name | |||
2021-03-17 | tests: use macros UINT32_C and UINT64_C for integer constants of type ↵ | Sébastien Helleu | |
uint32_t and uint64_t This fixes the following compiler warnings: "integer constant is so large that it is unsigned". | |||
2021-03-16 | core: add options to customize commands on system signals, quit by default ↵ | Sébastien Helleu | |
on SIGHUP when not running headless (closes #1595) New options to customize behavior on signals received, with the default behavior: - weechat.signal.sighup: quit in normal mode, reload config in headless - weechat.signal.sigquit: quit - weechat.signal.sigterm: quit - weechat.signal.sigusr1: no command executed by default - weechat.signal.sigusr2: no command executed by default The signals SIGUSR1 and SIGUSR2 are introduced by this commit, so it's now possible to run commands when they are received. The SIGHUP signal makes now WeeChat quit, it was the behavior before version 2.9 of WeeChat (see commit de1e61f7cd50cbd1a99777fe6611642a51abf5f6). | |||
2021-02-05 | core: add raw string in evaluation of expressions with "raw:xxx" (closes #1611) | Sébastien Helleu | |
2021-02-03 | irc: add info "irc_is_message_ignored" | Sébastien Helleu | |
2021-01-02 | core: update copyright dates | Sébastien Helleu | |
2021-01-01 | core: add indentation and colors in /eval debug output | Sébastien Helleu | |
2020-12-31 | core: display more verbose debug with two "-d" in command /eval | Sébastien Helleu | |
Now a single -d in command /eval shows less debug messages than previous versions. To get the same debug messages than previous versions, two -d must be used. | |||
2020-12-25 | core: do not remove quotes in arguments of command /eval (closes #1601) | Sébastien Helleu | |
Now, /eval -n -c "a" == "a" returns True instead of False. When quotes were removed, the condition evaluated was: a" == "a (which is False). | |||
2020-11-14 | core: add evaluation of conditions in evaluation of expressions with ↵ | Sébastien Helleu | |
"eval_cond:" (closes #1582) | |||
2020-10-04 | tests: add missing braces around if/else in macro WEE_NICK_STRDUP_FOR_COLOR ↵ | Sébastien Helleu | |
(issue #1565) | |||
2020-10-04 | api: add optional list of colors in infos "nick_color" and "nick_color_name" ↵ | Sébastien Helleu | |
(closes #1565) | |||
2020-10-04 | core: add argument "num_colors" in function gui_nick_hash_color, add tests ↵ | Sébastien Helleu | |
on nick functions (issue #1565) Functions tested: - gui_nick_hash_djb2_64 - gui_nick_hash_djb2_32 - gui_nick_hash_sum_64 - gui_nick_hash_sum_32 - gui_nick_get_forced_color - gui_nick_strdup_for_color - gui_nick_find_color - gui_nick_find_color_name | |||
2020-10-03 | tests: run callback when resetting options in tests | Sébastien Helleu | |
2020-08-29 | tests: fix compilation with CppUTest ≥ 4.0 | Sébastien Helleu | |
MemoryLeakWarningPlugin::turnOnNewDeleteOverloads is replaced by MemoryLeakWarningPlugin::turnOnThreadSafeNewDeleteOverloads, which is available in both CppUTest 3.x and 4.0. | |||
2020-08-23 | api: add argument "bytes" in function string_dyn_concat | Sébastien Helleu | |
2020-08-22 | api: add function string_color_code_size (issue #1547) | Sébastien Helleu | |
2020-08-15 | core: set "notify_level" to 3 if there is a highlight in the line (closes #1529) | Sébastien Helleu | |
2020-08-05 | irc: send all channels in a single JOIN command when reconnecting to the ↵ | Sébastien Helleu | |
server (closes #1551) | |||
2020-08-05 | tests: fix name of some unit tests | Sébastien Helleu | |
2020-08-04 | tests: add tests on GUI line functions | Sébastien Helleu | |
Functions tested: - gui_line_lines_alloc - gui_line_lines_free - gui_line_tags_alloc - gui_line_tags_free - gui_line_is_displayed - gui_line_has_tag_no_filter - gui_line_search_tag_starting_with - gui_line_get_nick_tag | |||
2020-06-21 | irc: check that the first nick char is not a prefix char or chantype in ↵ | Sébastien Helleu | |
function irc_nick_is_nick | |||
2020-06-21 | irc: change default chantypes from "#&+!" to "#&" | Sébastien Helleu | |
The default chantypes was conflicting with irc_server_prefix_chars_default ("@+"). | |||
2020-06-20 | tests: add test of function irc_nick_is_nick with invalid UTF-8 string | Sébastien Helleu | |
2020-06-20 | irc: add support of UTF8MAPPING, add support of optional server in info ↵ | Sébastien Helleu | |
"irc_is_nick" (closes #1528) | |||
2020-06-20 | tests: add tests on IRC function irc_channel_is_channel | Sébastien Helleu | |
2020-06-16 | tests: add tests on IRC command ACCOUNT with colon before the account name | Sébastien Helleu | |
2020-05-31 | tests: fix memory leak in test of function string_hex_dump | Sébastien Helleu | |
2020-05-21 | tests: add tests on function string_input_for_buffer with custom command chars | Sébastien Helleu | |
2020-05-21 | tests: add tests on function string_is_command_char with custom command chars | Sébastien Helleu | |
2020-05-21 | tests: add test on function string_base64_decode with truncated base64 string | Sébastien Helleu | |
2020-05-21 | tests: add test on function string_base16_decode with a char >= 0xA0 | Sébastien Helleu | |
2020-05-21 | core: add base 16/32/64 encoding/decoding in evaluation of expressions | Sébastien Helleu | |
2020-05-21 | core: move functions string_base_encode and string_base_decode from ↵ | Sébastien Helleu | |
plugin-api.c to wee-string.c | |||
2020-05-21 | core: return -1 in case of error in functions string_base16_decode and ↵ | Sébastien Helleu | |
string_base64_decode | |||
2020-05-17 | tests: run tests on plugins only if the plugins are enabled and compiled | Sébastien Helleu | |
2020-05-09 | api: use buffer pointer in argument "modifier_data" sent to weechat_print ↵ | Sébastien Helleu | |
modifier callback (closes #42) | |||
2020-05-08 | core: rename functions hook_completion_{get_string|list_add} to ↵ | Sébastien Helleu | |
completion_{get_string|list_add} Old functions are kept for compatibility reasons. | |||
2020-05-05 | core: add include comparison operators in evaluation of expressions | Sébastien Helleu | |
New comparison operators: - "==*": is matching mask, case sensitive (wildcard "*" is allowed) - "!!*": is NOT matching mask, case sensitive (wildcard "*" is allowed) - "==-": is included, case sensitive - "!!-": is NOT included, case sensitive - "=-": is included, case insensitive - "!-": is NOT included, case insensitive | |||
2020-05-03 | tests: fix pylint errors | Sébastien Helleu | |
2020-04-21 | core: restore signal "signal_sighup", and if eaten do not reload configuration | Sébastien Helleu | |
2020-04-20 | tests: add tests on functions relay_auth_password_hash_algo_search and ↵ | Sébastien Helleu | |
relay_auth_generate_nonce | |||
2020-04-19 | tests: reduce number of iterations in PBKDF2 tests from 100000 to 1000 | Sébastien Helleu | |
This speeds up tests by about 30%. | |||
2020-04-19 | tests: remove obsolete file test-relay-weechat-protocol.cpp | Sébastien Helleu | |
2020-04-14 | relay: add command "handshake" in weechat relay protocol and nonce to ↵ | Sébastien Helleu | |
prevent replay attacks (closes #1474) This introduces a new command called "handshake" in the weechat relay protocol. It should be sent by the client before the "init" command, to negotiate the way to authenticate with a password. 3 new options are added: * relay.network.auth_password * relay.network.hash_iterations * relay.network.nonce_size | |||
2020-04-11 | tests: add missing include of locale.h | Sébastien Helleu | |
This fixes build of tests on FreeBSD. | |||
2020-04-10 | tests: fix name of tests | Sébastien Helleu | |
2020-04-08 | tests: add tests on calc functions | Sébastien Helleu | |
Functions tested: - calc_operator_precedence - calc_pop_value - calc_list_free_cb - calc_operation - calc_operation_stacks | |||
2020-04-07 | tests: add missing include of stdio.h (issue #1469) | Sébastien Helleu | |
2020-04-07 | core: fix memory leak in calculation of expression on FreeBSD (closes #1469) | Sébastien Helleu | |
The memory leak was caused by a bug in function setlocale on FreeBSD: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=243195 The fix is the following: * Remove the calls to setlocale when formatting the result. * The function snprintf is still called, and then is now locale dependent, for example in French the decimal separator is a comma instead of a dot. * A new function calc_sanitize_decimal_number is introduced to "sanitize" a decimal number: keep only the decimal separator (replace it by a dot) and remove any other separator found. Unit tests are added on these functions: * calc_sanitize_decimal_number * calc_format_result |