Sébastien Helleu
943374f789
doc: add note about call to "regfree" after call to "string_regcomp" (plugin API reference)
2021-01-01 18:10:47 +01:00
Sébastien Helleu
d413ccdf4f
core: add indentation and colors in /eval debug output
2021-01-01 17:08:59 +01:00
Sébastien Helleu
2ad3da03a2
core: display more verbose debug with two "-d" in command /eval
...
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-31 20:37:43 +01:00
Sébastien Helleu
33c7b96146
core: fix typo in comment
2020-12-30 23:02:37 +01:00
Sébastien Helleu
ee9aa28a8c
core: do not remove quotes in arguments of command /eval ( closes #1601 )
...
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-12-25 00:21:03 +01:00
Sébastien Helleu
7e2396ade8
core: add options "setvar" and "delvar" in command /buffer, rename option "localvar" to "listvar"
...
The option "localvar" (introduced long time ago, in WeeChat 0.3.0) is still
recognized by WeeChat, to stay compatible with any extension/script calling
it (or referencing it in the documentation).
It is deprecated and will be removed in a future release.
2020-12-19 20:59:38 +01:00
Sébastien Helleu
e4152c3535
core: remove unneeded return of WEECHAT_RC_OK in filter command
2020-12-18 20:28:41 +01:00
Sébastien Helleu
dc5277fe89
core: add option "recreate" in command /filter
2020-12-18 20:28:16 +01:00
Tim Gates
08db4407ed
docs: fix simple typo, confiuration -> configuration
...
There is a small typo in src/core/weechat.c.
Should read `configuration` rather than `confiuration`.
2020-11-28 09:46:23 +01:00
Sébastien Helleu
070eb3f7b0
core: increase buffer size in HTTP proxy connection
...
In case of long address/username/password, the HTTP CONNECT message could be
truncated.
2020-11-21 21:13:13 +01:00
Sébastien Helleu
194f8b5b74
core: increase command buffer size in /color command
...
In case of long alias name, the command to set color alias could be truncated.
2020-11-21 21:13:05 +01:00
Sébastien Helleu
5cbda03fca
core: fix and normalize error messages
2020-11-17 21:54:24 +01:00
Sébastien Helleu
21eadc9488
core: display an error when the buffer is not found with command /command -buffer
2020-11-17 13:43:20 +01:00
Sébastien Helleu
b626df72fb
core: add evaluation of conditions in evaluation of expressions with "eval_cond:" ( closes #1582 )
2020-11-14 09:28:46 +01:00
Sébastien Helleu
cfd221014c
api: add argument "bytes" in function string_dyn_concat
2020-08-23 23:27:57 +02:00
Sébastien Helleu
b0ecbdbf1d
core: add bar option "color_bg_inactive" (issue #732 )
2020-06-21 18:59:54 +02:00
Sébastien Helleu
66d4590dab
core: add base 16/32/64 encoding/decoding in evaluation of expressions
2020-05-21 09:36:35 +02:00
Sébastien Helleu
1994d5641d
core: move functions string_base_encode and string_base_decode from plugin-api.c to wee-string.c
2020-05-21 00:02:24 +02:00
Sébastien Helleu
0ac936a5cf
core: return -1 in case of error in functions string_base16_decode and string_base64_decode
2020-05-21 00:01:35 +02:00
Sébastien Helleu
8f308ea918
core: split function eval_replace_vars_cb into multiple functions
2020-05-20 00:04:45 +02:00
Sébastien Helleu
a3747fefcd
core: move creation of info_hashtable from gui-focus.c to plugin-api-info.c (issue #1257 )
2020-05-16 14:23:09 +02:00
Simmo Saan
3f0c6ac96b
gui: add gui_focus_info hashtable info ( #1245 )
2020-05-16 14:23:09 +02:00
Sébastien Helleu
dba94f0c5d
core: add color in /buffer output for notification level, update translations (issue #1505 )
2020-05-16 13:40:08 +02:00
Trygve Aaberge
d2f49755c7
core: Allow displaying notify level with /buffer notify
2020-05-16 13:35:36 +02:00
Trygve Aaberge
63714855d3
core: add an option for multiline input in a buffer ( closes #984 )
...
This allows the input callback function for a buffer to receive multiple
lines at once, instead of the message being split on newline before
being sent to the callback. It adds a new flag, input_multiline, to
control this. This flag defaults to 0 which is the current behavior.
2020-05-09 18:07:36 +02:00
Sébastien Helleu
88bef0b1b1
core: rename functions hook_completion_{get_string|list_add} to completion_{get_string|list_add}
...
Old functions are kept for compatibility reasons.
2020-05-08 10:51:30 +02:00
Sébastien Helleu
b1c3a29ac7
core: add include comparison operators in evaluation of expressions
...
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-05 20:43:45 +02:00
Sébastien Helleu
d3020976d5
api: add functions completion_new, completion_search and completion_free (issue #1484 )
2020-04-27 22:15:42 +02:00
Sébastien Helleu
100440c8a1
core: restore signal "signal_sighup", and if eaten do not reload configuration
2020-04-21 22:34:42 +02:00
Tom Fitzhenry
de1e61f7cd
core: reload config on SIGHUP
...
fixes https://github.com/weechat/weechat/issues/1476
2020-04-22 01:25:08 +10:00
Sébastien Helleu
0b994d718d
core: add command line option "--stdout" in weechat-headless binary ( closes #1475 , closes #1477 )
2020-04-19 11:28:39 +02:00
Tom Fitzhenry
18a837c55b
core: log to stdout, if headless
...
Fixes https://github.com/weechat/weechat/issues/1475 .
2020-04-19 11:05:22 +02:00
Sébastien Helleu
e130ee7358
core: make GnuTLS a required dependency
2020-04-18 11:34:59 +02:00
Sébastien Helleu
007fd03bc8
tests: add tests on calc functions
...
Functions tested:
- calc_operator_precedence
- calc_pop_value
- calc_list_free_cb
- calc_operation
- calc_operation_stacks
2020-04-08 21:38:51 +02:00
Sébastien Helleu
d78ac827e9
core: fix memory leak in calculation of expression on FreeBSD ( closes #1469 )
...
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
2020-04-07 21:37:48 +02:00
Sébastien Helleu
fa931b46eb
core: fix compiler warnings on Cygwin
2020-03-23 07:23:08 +01:00
Sébastien Helleu
c29b45a0f2
api: add info "auto_connect" ( closes #1453 )
2020-03-20 20:42:05 +01:00
Sébastien Helleu
7af8e6c652
core: add minimum libgcypt version 1.7.0 for SHA3 algorithms in comment of function weecrypto_hash
2020-03-02 22:57:44 +01:00
Sébastien Helleu
3604abba7d
core: fix copyright date in wee-crypto sources
2020-03-02 22:57:39 +01:00
Sébastien Helleu
2d7829b2d5
core: require libgcrypt >= 1.7.0 for SHA3 algorithms
2020-03-02 21:49:30 +01:00
Sébastien Helleu
3157d1f06e
api: add function crypto_hash_pbkdf2
2020-03-01 23:14:55 +01:00
Sébastien Helleu
9a6a27ef58
core: move crypto functions to wee-crypto.c, rename API function string_hash to crypto_hash
2020-03-01 21:24:27 +01:00
Sébastien Helleu
c4ef3d6c2e
core: merge functions string_hash_binary and string_hash into a single function string_hash
2020-03-01 16:41:28 +01:00
Sébastien Helleu
1ae2591458
core: add function secure_hash_pbkdf2
2020-03-01 14:26:24 +01:00
Sébastien Helleu
7449bc8827
core: add support of CRC32 algorithm in hash functions
2020-02-29 21:12:13 +01:00
Sébastien Helleu
410a5b341f
api: add functions string_hash_binary and string_hash
2020-02-29 21:02:42 +01:00
Sébastien Helleu
7e808e2ef7
core: call function secure_hash_binary in secure_derive_key to compute SHA512 hash
2020-02-29 15:46:25 +01:00
Sébastien Helleu
45fd04ee72
core: return 0 in case of invalid parameters received in function secure_derive_key
2020-02-29 15:46:25 +01:00
Sébastien Helleu
e2135fc3eb
core: add functions to compute binary/hex hash of data
2020-02-29 15:46:25 +01:00
Sébastien Helleu
27266ccd02
core: rename function util_get_uptime to util_get_time_diff
...
The two times must be sent as parameters, which makes the function not specific
to uptime. It is now easier to test the function in unit tests.
2020-02-02 13:57:39 +01:00