Sébastien Helleu
ba70173a2e
irc: fix variable name in function irc_server_connect when GnuTLS is disabled
2020-03-12 07:35:04 +01:00
Sébastien Helleu
5f94636b91
irc: rename argument in function irc_protocol_is_numeric_command
2020-03-10 19:19:38 +01:00
Sébastien Helleu
2fe27584ff
irc: return 0 in function irc_protocol_is_numeric_command if the command is NULL or empty
2020-03-10 19:15:59 +01:00
Sébastien Helleu
8a5046f0a1
irc: add support of fake servers (no I/O, for testing purposes)
2020-03-09 21:09:55 +01:00
Sébastien Helleu
3590302183
irc: copy temporary server flag in command /server copy
2020-03-08 13:56:30 +01:00
Sébastien Helleu
2d2b49bfaa
relay: accept hash of password in init command with option "password_hash"
...
Allowed algorithms are:
* PBKDF2 (SHA256 or SHA512, salt, iterations)
* SHA256
* SHA512
2020-03-02 00:46:10 +01:00
Sébastien Helleu
1882686f8a
script: rename variable length_hash to hash_size
2020-03-01 23:14:55 +01:00
Sébastien Helleu
0271eacbe5
relay: rename variable length_hash to hash_size
2020-03-01 23:14:55 +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
3472793d24
script: call function string_hash in script_repo_sha512sum_file to compute SHA512 hash
...
This removes dependency on libgcrypt in script plugin.
2020-03-01 09:08:48 +01:00
Sébastien Helleu
bb363ab27f
relay: call function string_hash_binary in relay_websocket_build_handshake to compute SHA1 hash
...
This removes dependency on libgcrypt in relay plugin.
2020-03-01 09:03:49 +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
91701cbdb4
php: fix crash when loading script with PHP 7.4 ( closes #1452 )
2020-02-28 21:28:29 +01:00
Sébastien Helleu
6daa09b0b8
script: fix memory leak in read of script repository file if it has invalid content
2020-02-18 21:04:21 +01:00
Sébastien Helleu
c6e9e18aaa
script: fix unexpected display of scripts list in buffer with command /script list -i
2020-02-16 08:04:58 +01:00
Sébastien Helleu
3fc0f1957e
script: remove dead assignment of variable length in function script_action_list_input
2020-02-16 07:59:02 +01:00
Sébastien Helleu
230f648584
irc: use irc_server_prefix_chars_default if server->prefix_chars is NULL
2020-02-10 21:18:47 +01:00
Sébastien Helleu
9904cb6d2e
irc: fix crash when receiving a malformed message 352 (who)
...
Thanks to Stuart Nevans Locke for reporting the issue.
2020-02-10 07:37:11 +01:00
Sébastien Helleu
40ccacb433
irc: fix crash when a new message 005 is received with longer nick prefixes
...
Thanks to Stuart Nevans Locke for reporting the issue.
2020-02-09 20:04:45 +01:00
Sébastien Helleu
6f4f147d8e
irc: fix crash when receiving a malformed message 324 (channel mode)
...
Thanks to Stuart Nevans Locke for reporting the issue.
2020-02-08 20:24:50 +01:00
Sébastien Helleu
2769989751
irc: remove nested switches in function irc_color_decode_ansi_cb
2020-02-07 21:29:46 +01:00
Sébastien Helleu
60f2734184
irc: use dynamic string in function irc_color_encode
2020-02-05 21:51:11 +01:00
Sébastien Helleu
5b902eb804
irc: replace realloc by dynamic string in function irc_color_decode
2020-02-05 21:50:39 +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
Sébastien Helleu
4e2718d234
irc: add nick changes in the hotlist (except self nick change)
2020-02-01 23:02:55 +01:00
orbea
6d2d304136
Fix the build with guile-3.0.0.
...
v2: Update configure.ac too.
Signed-off-by: orbea <orbea@riseup.net >
2020-01-30 22:05:43 +01:00
Sébastien Helleu
f980820395
logger: fix crash when disabling logging on a buffer ( closes #1444 )
...
Crash happens if the log file was deleted before disabling logging and if the
option logger.file.info_lines is on.
2020-01-25 13:42:12 +01:00
Sébastien Helleu
b79cd6d546
relay: update buffers synchronization when buffers are renamed ( closes #1428 )
2020-01-12 17:03:16 +01:00
Sébastien Helleu
4f9c4fecd3
irc: case-insensitive comparison on incoming CTCP command, force upper case on CTCP replies ( closes #1439 )
2020-01-11 11:02:41 +01:00
Sébastien Helleu
9ac4639c8c
xfer: send signal "xfer_ended" after the received file has been renamed ( closes #1438 )
2020-01-04 11:19:47 +01:00
Sébastien Helleu
feb6258910
core: update copyright dates
2020-01-04 10:41:26 +01:00
Sébastien Helleu
481da803cb
buflist: add pointer "window" in bar item evaluation
2019-12-26 22:44:19 +01:00
Sébastien Helleu
330149b9b6
relay: reject client with weechat protocol if password or totp is received in init command but not set in WeeChat ( closes #1435 )
2019-12-21 10:47:35 +01:00
Sébastien Helleu
bb62485aa9
irc: fix memory leak when the channel topic is changed
2019-12-15 07:27:45 +01:00
Matthew Horan
f966329862
api: add info "weechat_headless"
2019-12-13 21:30:54 +01:00
Simmo Saan
c487965e8b
irc: add GnuTLS >= 3.1.0 requirement to ssl_password option help (issue #115 )
2019-12-13 21:18:22 +01:00
Simmo Saan
139a7053e4
irc: fix compilation with GnuTLS < 3.1.0 (issue #115 )
...
Due to this ssl_password will be partially unused with GnuTLS < 3.1.0.
In that case an encrypted SSL client cert import will simply fail.
2019-12-13 21:18:22 +01:00
Sébastien Helleu
e743e731ec
irc: do not automatically open a channel with name "0" ( closes #1429 )
...
"0" is a special channel name which causes a client to leave all the channels
it is presently on.
Note that when option irc.look.buffer_open_before_join is on, WeeChat may still
open channel buffers with an invalid channel name like "1". The server should
reply something like that, displayed on the server buffer:
1: No such channel
2019-11-21 20:35:32 +01:00
Sébastien Helleu
3a03184d7a
irc: mention /filter command in /help irc.look.smart_filter
2019-11-15 08:38:40 +01:00
Eli Schwartz
5c8ac69f73
python: use more idiomatic cmake pkg-config linking
...
cmake documentation is absolutely atrocious, and I don't know why they
mention all the wrong things to use, and the cargo cult of successfully
writing a cmake build definition (copy-pasting what works from other
projects) also uses all the wrong things. But it turns out it is
possible to correctly link a PkgConfig target despite all that, at
least, *iff* you use cmake >= 3.13. I've chosen option 2, which is to
vendor in cmake >= 3.13's FindPkgConfig module in the previous commit.
Using IMPORTED_TARGET GLOBAL in a pkg-config check will result in a
proper linker target being created. For comparison, this is like using
meson's dependency() target, except meson forces you to do this by
default. The result is that the build system's internal representation
of how to link something, is used instead of manually passing build
flags defined in variables.
This is an important distinction to make, because cmake does not have a
list datatype, and instead turns lists into strings separated by ';'
which are indistinguishable from, like, strings which contain ';'
characters. When you pass the resulting list-which-isn't-really-a-list
to link an executable/library, you either need to preprocess the
variable to replace ';' with ' ' (just in case there are multiple
elements) or use cmake functions which magically know to do this
themselves -- or at least, I assume there are cmake functions that
correctly handle so-called "lists", or there would be no need for
"lists" to exist.
The IMPORTED_TARGET will define a bunch of INTERFACE_* properties which
do seem to do exactly this. The resulting build definition should
actually, correctly, link python, thereby fixing #1398 in a better way.
2019-11-12 21:19:47 +01:00
Sébastien Helleu
9f8162651f
irc: set option irc.look.display_pv_warning_address to off by default (issue #892 )
...
This is because the bitlbee server causes the warning to be displayed when it
is not expected (the address of remote nick changes multiple times on login).
2019-11-08 21:27:12 +01:00
Sébastien Helleu
6507544947
irc: fix typo and examples in /help server
2019-11-03 14:54:45 +01:00
Sébastien Helleu
10f85df867
irc: set raw filter to "*" if local variable "filter" was not set after /upgrade on raw buffer
2019-11-03 09:55:09 +01:00
Sébastien Helleu
7e07954fbf
irc: restore irc raw filter after /upgrade (issue #1000 )
2019-11-03 09:28:16 +01:00
Sébastien Helleu
015ae4a94b
irc: add filters on raw buffer ( closes #1000 )
2019-11-03 09:01:44 +01:00
Sébastien Helleu
4a86ab55d8
fset: add comment on filter by evaluated expression
2019-10-30 19:41:56 +01:00
Sébastien Helleu
7cac32fc1f
fset: fix filter variable used to match filter string
2019-10-30 19:41:31 +01:00
Sébastien Helleu
c6161d0e4a
plugins: sort options added in configuration sections
2019-10-23 19:45:06 +02:00