Joram Schrijver
297a140bea
guile: fix memory leak in output port
2020-06-07 11:07:03 +02:00
Joram Schrijver
cb5d90dcc7
guile: re-enable "/guile eval" (issue #1098 )
...
With the output port now properly implemented for Guile >= 2.2, this
command works again.
2020-06-07 11:07:03 +02:00
Joram Schrijver
cac45aab46
guile: fix printing of output to buffer (issue #1098 )
...
The support for Guile 2.2 did not implement the custom port correctly,
and did not configure it to be the default output port. This caused
output from Guile to be printed straight to the TTY, breaking the
WeeChat interface.
Note that the port is unbuffered, so that code like
(display "test")
immediately results in output, without an explicit call to force-output.
2020-06-07 11:07:03 +02:00
Sébastien Helleu
196a4e28aa
irc: fix add of ignore with flags in regex, display full ignore mask in list of ignores ( closes #1518 )
2020-06-04 08:05:57 +02:00
Max Teufel
0027c23b7e
irc: display account messages in buffers
2020-06-03 07:59:04 +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
4a67c4a1ab
irc: do not remove spaces at the end of users messages received ( closes #1513 )
...
The regression was introduced in version 2.5 by commit
2b70d71aa1 .
2020-05-19 20:12:27 +02:00
Sébastien Helleu
0aa9f7de64
trigger: add (void) before calls to trigger_callback_execute when the returned value is ignored
2020-05-17 09:48:07 +02:00
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