Sébastien Helleu
46b76af645
xfer: display an error message when opening file for read or write fails (issue #2010 )
2023-09-08 13:06:28 +02:00
Sébastien Helleu
2c251cd285
script: fix up/down keys on /script buffer
...
Regression was introduced in commit 817d1eaf8e .
2023-09-08 10:47:46 +02:00
Sébastien Helleu
374262a8d7
core: add completion "eval_variables", used in completion of /eval
2023-09-07 11:38:26 +02:00
Sébastien Helleu
89739421cf
core: fix comment on function eval_replace_vars_cb
2023-09-07 11:30:54 +02:00
Sébastien Helleu
6eb3f5672f
xfer: fix code style (issue #2004 )
2023-09-06 19:10:47 +02:00
Sébastien Helleu
1f1416dd50
irc: fix code style (issue #2004 )
2023-09-06 19:10:41 +02:00
Mario Campos
1ee3bad88b
xfer: update command/config docs with passive DCC support.
2023-09-06 14:11:35 +02:00
Mario Campos
7f0f947667
xfer: add passive DCC support.
...
This commit also includes support for passive DCC RESUME.
There was also a potential segfault with calling `atoi(pos_token)` when `pos_token` is NULL, so `token` is set to be stored as a string. Although it is an integer, we don't need to store it as such. That's really more of an implementation detail.
2023-09-06 14:11:35 +02:00
Mario Campos
23d70b5101
xfer: add and identify active/passive xfer types.
...
Before making any significant changes, let's identify the existing xfer types by either active or passive.
2023-09-06 14:11:35 +02:00
Mario Campos
2a40743ed0
xfer: reverse DCC parsing from RtL to LtR.
...
This makes it easier to handle the optional "token" argument at the (right) end, which will be necessary to support passive DCC.
Incidentally, this is RtL parsing order is the reason why you'd get a cryptic "0" address error when attempting to do passive DCC: the "token" argument gets misinterpreted as the "size" argument. Every argument "shifts" over by one, leaving an address (port) of "0".
2023-09-06 14:11:35 +02:00
Sébastien Helleu
e1ecf992f3
irc: fix comments on CTCP evaluated variables (issue #1974 )
2023-09-06 14:05:10 +02:00
Sébastien Helleu
722cb27d04
core: add note for translators on command arguments (issue #2005 )
...
Only text between angle brackets (eg: "<name>") must be translated.
2023-09-05 13:28:26 +02:00
Sébastien Helleu
13ce1147fc
doc: fix alignment of command arguments in auto-generated file when command name contains wide chars
2023-09-01 08:58:36 +02:00
Sébastien Helleu
2b3fb62065
core: do not evaluate properties "key_bind_xxx" and "key_unbind_xxx" in options weechat.buffer.* (issue #352 )
2023-08-30 17:25:21 +02:00
Sébastien Helleu
8b3311860b
api: add support of path to variable and hashtable comparison in function hdata_compare ( closes #1066 )
2023-08-29 10:22:17 +02:00
Sébastien Helleu
58d61cb153
core: remove unused variable old_value
2023-08-29 09:53:08 +02:00
Sébastien Helleu
32f52ae236
core: check that property is not NULL before calling free
2023-08-29 09:52:17 +02:00
Sébastien Helleu
aa4bc616b9
core: add missing include of unistd.h
2023-08-28 17:57:46 +02:00
Sébastien Helleu
b203c4109b
core: move sys filename and functions
2023-08-28 17:55:54 +02:00
Sébastien Helleu
a16b3d25ce
core: update translations
2023-08-28 17:47:21 +02:00
Sébastien Helleu
cc2b44a8ec
core: add key ctrl+z to suspend WeeChat process ( closes #985 )
2023-08-28 17:39:33 +02:00
Sébastien Helleu
5ecb1adc34
core: add command /sys to show resource limits and usage
2023-08-28 12:30:32 +02:00
Sébastien Helleu
711d3afa5c
script: fix crash when a /script command triggers another /script command (issue #923 )
2023-08-27 17:19:01 +02:00
Sébastien Helleu
99822fc5e7
core: ignore key bindings with empty command
...
This makes possible to disable a key hiding another (because shorter than the
other, and beginning with the same key).
For example if key "meta-a" is set to an empty command, it would not hide any
more the key "meta-a,1" which has a non-empty command.
2023-08-27 14:16:08 +02:00
Sébastien Helleu
181f4c041d
core: add support of quotes in commands /key bind and /key bindctxt
2023-08-27 14:15:30 +02:00
Sébastien Helleu
3ca4f2d3e5
irc: add count and mode filter in command /names ( closes #98 )
2023-08-27 12:26:10 +02:00
Sébastien Helleu
300adb42fa
irc: add note about regex and output on server buffer in /help list
2023-08-27 09:59:54 +02:00
Sébastien Helleu
e5e027b9fa
core: add countdown example in /help repeat (issue #2007 )
2023-08-27 08:25:41 +02:00
Sébastien Helleu
9a268ec7cc
core: evaluate command given to /repeat with contextual variables ( closes #2007 )
2023-08-27 08:03:40 +02:00
Sébastien Helleu
4a95d78c45
core: add variable ${property} in evaluation of options weechat.buffer.* (issue #352 )
2023-08-26 20:04:58 +02:00
Sébastien Helleu
dd0c20f6b6
irc: add count for all nick modes in output of /names ( closes #97 )
2023-08-26 18:57:21 +02:00
Sébastien Helleu
42c925b672
irc: use str_nicks only if not NULL in callback of message 353
2023-08-26 18:56:37 +02:00
Sébastien Helleu
ff4596e45c
core: add option callbacks in command /debug
2023-08-25 13:35:50 +02:00
Sébastien Helleu
cc2bb4b8cf
core: add function util_get_microseconds_string
2023-08-25 11:53:23 +02:00
Sébastien Helleu
015ff084e3
core: add microseconds precision in function util_parse_delay
2023-08-25 11:23:41 +02:00
Sébastien Helleu
2092715ac7
core: add buffer local keys in completion "buffer_properties_setauto"
2023-08-24 19:20:05 +02:00
Trygve Aaberge
d14e74ccf6
Add compatibility with Python < 3.10 in weechat.pyi
...
The | syntax for unions is only supported in Python 3.10 and later.
Since Python 3.8 and 3.9 are still supported upstream for a while and we
had a user reporting on IRC that they couldn't use the stub file since
they are using 3.8, change to the old syntax for unions to support this.
There aren't really any drawbacks of this. It's just a bit more verbose,
and a typing import is necessary, but neither of those really matters in
a generated stub file.
2023-08-24 19:08:00 +02:00
Sébastien Helleu
3a59f2f65e
irc: add local key bindings during the /list buffer creation
...
This allows the user to bind or unbind keys by setting options
"weechat.buffer.irc.list_xxx.key_bind_*" and
"weechat.buffer.irc.list_xxx.key_unbind_*".
2023-08-24 19:03:44 +02:00
Sébastien Helleu
817d1eaf8e
script: add local key bindings during the buffer creation
...
This allows the user to bind or unbind keys by setting options
"weechat.buffer.script.scripts.key_bind_*" and
"weechat.buffer.script.scripts.key_unbind_*".
2023-08-24 19:01:20 +02:00
Sébastien Helleu
6737859330
fset: add local key bindings during the buffer creation
...
This allows the user to bind or unbind keys by setting options
"weechat.buffer.fset.fset.key_bind_*" and
"weechat.buffer.fset.fset.key_unbind_*".
2023-08-24 19:00:32 +02:00
Sébastien Helleu
fd07b2888f
fset: fix wrong value type in hashtable used for fset buffer properties
2023-08-24 18:44:50 +02:00
Sébastien Helleu
5d9af29024
api: add infos "nick_color_ignore_case" and "nick_color_name_ignore_case" (issue #194 )
2023-08-24 18:19:32 +02:00
Sébastien Helleu
303fe6744e
core: add option setauto in command /buffer (issue #352 )
2023-08-24 11:49:29 +02:00
Sébastien Helleu
3aef8b7292
core: add options weechat.buffer.* to save buffer properties set by user (issue #352 )
2023-08-24 10:38:47 +02:00
Sébastien Helleu
6aa66b5363
irc: compute color in case insensitive way ( closes #194 )
...
Reintroduce infos "irc_nick_color" and "irc_nick_color_name" (that were
marked deprecated since version 1.5).
A server name is added in the two infos and is optional, for backward
compatibility.
2023-08-24 09:24:51 +02:00
Sébastien Helleu
c2426e88c9
irc: add functions to convert strings to lower/upper case (following casemapping) (issue #194 )
2023-08-24 09:24:42 +02:00
Sébastien Helleu
25b3f2eae7
irc: fix string comparison when CASEMAPPING is set to "ascii"
2023-08-23 15:33:34 +02:00
Sébastien Helleu
03927a3283
irc: check that server is not NULL in function irc_server_eval_fingerprint
2023-08-23 12:08:59 +02:00
Sébastien Helleu
7afc43901d
irc: move function irc_server_fingerprint_search_algo_with_size
2023-08-23 12:06:59 +02:00
Sébastien Helleu
9591af8be8
core: fix gcc warning on uninitialized variable pos_end
...
The variable `pos_end` is never used when not initialized anyway, thanks to the
`break` done before.
2023-08-22 10:29:11 +02:00