Simmo Saan
b14cf0ac3d
trigger: only return trigger's return code when condition evaluates to true
2020-05-17 09:46:10 +02:00
Sébastien Helleu
f500c972dd
core: update translations ( closes #1245 , closes #1257 )
2020-05-16 14:40:19 +02:00
Sébastien Helleu
aa86d82796
core: rename info_hashtable "gui_focus_info" to "focus_info" (issue #1257 )
2020-05-16 14:23:18 +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
Sébastien Helleu
4f4f32b9ed
relay: increase default limits for IRC backlog options
...
Default value is changed for the following options:
* relay.irc.backlog_max_minutes: from 1440 to 0 (unlimited)
* relay.irc.backlog_max_number: from 256 to 1024
2020-05-12 18:56:40 +02:00
Simmo Saan
517c4c2903
irc: fix realname delimiter color in WHO/WHOX response
2020-05-09 19:31:34 +02:00
Sébastien Helleu
3505324096
api: use buffer pointer in argument "modifier_data" sent to weechat_print modifier callback ( closes #42 )
2020-05-09 10:08:18 +02:00
Sébastien Helleu
4c050b343d
irc: reuse a buffer with wrong type "channel" when a private message is received ( closes #869 )
2020-05-08 13:27:20 +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
b7765ed960
trigger: fix truncated trigger command with commands /trigger input|output|recreate
2020-05-07 08:19:31 +02:00
Sébastien Helleu
dff1bf6f0f
exec: return NULL immediately if the task id is invalid
2020-05-03 16:33:02 +02:00
Sébastien Helleu
5438f62f74
exec: fix use of same task id for different tasks ( closes #1491 )
2020-05-03 16:07:11 +02:00
Sébastien Helleu
7699c0b757
relay: add "compression" in response to handshake command (weechat protocol)
...
The value can be "zlib" (default in relay) or "off".
2020-05-02 12:45:47 +02:00
Sébastien Helleu
5b4d690ed7
relay: fix slow send of data to clients when SSL is enabled
2020-05-01 18:52:08 +02:00
Quentin Glidic
f697a5b295
fifo: Open the fifo for writing too
...
That will make it survive, avoiding the need to reopen it.
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net >
2020-04-28 16:37:39 +02:00
Sébastien Helleu
b6cc42cbf7
relay: add command "completion" in weechat relay protocol ( closes #1484 )
2020-04-28 11:15:30 +02:00
Sébastien Helleu
d1a427b67f
api: return integer in function gui_completion_search (issue #1484 )
2020-04-28 10:46:49 +02:00
Sébastien Helleu
2bd8e91b54
api: add hdata "completion_word" (issue #1484 )
2020-04-27 22:18:03 +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
0f1cee08bf
relay: fix error message for an invalid buffer received in a command (weechat protocol)
2020-04-26 23:41:31 +02:00
Sébastien Helleu
0abd0292da
buflist: add default key alt-shift-B to toggle buflist
2020-04-24 22:44:13 +02:00
Sébastien Helleu
916c22a3d0
buflist: add options enable/disable/toggle in command /buflist
2020-04-24 22:39:44 +02:00
Sébastien Helleu
60b75f4677
tests: add tests on functions relay_auth_password_hash_algo_search and relay_auth_generate_nonce
2020-04-20 07:16:08 +02:00
Sébastien Helleu
0d126c44dd
trigger: do not hide values of options with /set command in cmd_pass trigger
2020-04-18 15:38:45 +02:00
Sébastien Helleu
e130ee7358
core: make GnuTLS a required dependency
2020-04-18 11:34:59 +02:00
Sébastien Helleu
80693dcea9
relay: move variable nonce in relay client structure
2020-04-18 09:30:51 +02:00
Sébastien Helleu
95b2d686a2
relay: allow only one handshake in weechat protocol
2020-04-18 00:33:15 +02:00
Sébastien Helleu
970c99961c
relay: immediately close connection if the handshake failed (weechat protocol)
2020-04-18 00:08:11 +02:00
Sébastien Helleu
95c908e83c
relay: rename configuration options and keywords in handshake command (weechat protocol)
...
Configuration options renamed:
* relay.network.auth_password -> relay.network.password_hash_algo
* relay.network.hash_iterations -> relay.network.password_hash_iterations
Handshake command options renamed:
* password -> password_hash_algo
Handshake reply keys renamed:
* auth_password -> password_hash_algo
* hash_iterations -> password_hash_iterations
2020-04-17 23:34:27 +02:00
Sébastien Helleu
853a91d870
doc: replace "safest" by "most secure" (relay protocol)
2020-04-17 21:21:25 +02:00
Sébastien Helleu
4cc557f421
relay: fix "id" sent in response to handshake command (weechat protocol)
2020-04-16 10:27:37 +02:00
Sébastien Helleu
8560b09dad
relay: add missing gcrypt lib in CMake and autotools files
...
This fixes build on Cygwin.
2020-04-15 22:50:27 +02:00
Sébastien Helleu
9fa3609c85
relay: add command "handshake" in weechat relay protocol and nonce to 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-14 21:38:12 +02:00
Sébastien Helleu
ccd45e4921
relay: update message displayed when the client is connected/authenticated
2020-04-12 20:24:39 +02:00
Sébastien Helleu
b947512c9a
relay: add option relay.network.auth_timeout
2020-04-12 19:36:12 +02:00
Sébastien Helleu
fb6fc22c74
relay: add a function to send outqueue to the client
2020-04-12 19:25:21 +02:00
Sébastien Helleu
9f55f90bbf
relay: update default colors for client status
...
Colors changed:
* relay.color.status_active: lightblue -> green
* relay.color.status_auth_failed: lightred -> lightmagenta
* relay.color.status_connecting: yellow -> white
* relay.color.status_waiting_auth: brown -> yellow
The color relay.color.status_disconnected remains lightred by default.
2020-04-12 18:02:27 +02:00
Sébastien Helleu
7ddc815726
relay: actually use the client status "waiting_auth" in irc and weechat protocols ( closes #1358 )
...
Now the status "waiting_auth" is used and displayed in the relay buffer.
When a client connects, there are now 2 messages (except for irc protocol if
there's no password required):
relay: new client on port 9000: 1/weechat/1.2.3.4 (waiting auth)
relay: client 1/weechat/1.2.3.4 authenticated
If the authentication fails, the messages are:
relay: new client on port 9000: 1/weechat/1.2.3.4 (waiting auth)
=!= relay: authentication failed with client 1/weechat/1.2.3.4
2020-04-12 17:46:46 +02:00
Sébastien Helleu
07505bb53c
relay: add comments in truct t_relay_weechat_data
2020-04-12 15:35:03 +02:00
Sébastien Helleu
8bdd540df7
trigger: evaluate arguments of command when the trigger is created ( closes #1472 )
2020-04-12 09:30:56 +02:00
Sébastien Helleu
fdd39c6b97
buflist: evaluate option buflist.look.sort ( closes #1465 )
...
The evaluation allows to use different sort for the bar items, for example with
such value:
${if:${bar_item.name}==buflist?number:short_name}
This sorts by number on the first bar item and by short name on the two other
bar items.
2020-04-06 20:49:17 +02:00
Sébastien Helleu
fae149b361
python: fix crash when invalid UTF-8 string is in a WeeChat hashtable converted to a Python dict ( closes #1463 )
2020-04-04 18:10:02 +02:00
Sébastien Helleu
2f8fd4c0ef
fset: fix help on options fset.format.option1 and fset.format.option2
2020-04-02 20:38:37 +02:00
Sébastien Helleu
4481b93d35
irc: add missing modifier "irc_color_decode_ansi" in comment on function irc_color_modifier_cb
2020-03-30 07:31:11 +02:00
Sébastien Helleu
03ffd396a4
irc: move functions irc_protocol_get_message_tags and irc_protocol_parse_time before protocol callbacks
2020-03-28 13:39:48 +01:00
Sébastien Helleu
2efad93220
irc: remove empty lines
2020-03-28 10:36:10 +01:00
Sébastien Helleu
349251feb1
irc: fix typo in description of message 001
2020-03-27 22:51:15 +01:00
Sébastien Helleu
0834286843
irc: add examples of NOTICE and PRIVMSG messages to channel ops
2020-03-27 22:50:52 +01:00
Sébastien Helleu
5ca64fc389
ruby: fix compiler warning on third argument of function weechat_ruby_hash_foreach_cb
2020-03-22 10:29:53 +01:00
Sébastien Helleu
c14d5ba004
irc: use larger buffer for message in function irc_message_split_authenticate, just in case
2020-03-21 14:31:53 +01:00