Sébastien Helleu
96ed471261
relay: fix parsing of IRC messages received from clients ( closes #1796 )
...
The IRC parser improved in version 3.4 is now used to parse command
parameters (variables "num_params" and "paramN" in output of parser function).
2022-07-21 10:20:10 +02:00
Sébastien Helleu
6b59fc8557
irc: use API function string_rebuild_split_string in irc_protocol_string_params
2022-07-20 13:20:07 +02:00
Sébastien Helleu
b7441bd7a3
api: add arguments "index_start" and "index_end" in function string_rebuild_split_string
2022-07-20 13:16:35 +02:00
Sébastien Helleu
62e68f965f
api: rename function string_build_with_split_string to string_rebuild_split_string
2022-07-20 12:14:40 +02:00
Sébastien Helleu
0440309cee
irc: fix duplicated channels in autojoin option when autojoin_dynamic is enabled ( closes #1795 )
2022-07-16 14:05:48 +02:00
Sébastien Helleu
e057c16b36
api: add info "uptime_current"
...
This info returns time duration between the start of the current WeeChat
process and now (so upgrades with /upgrade are ignored).
2022-07-10 13:02:35 +02:00
Sébastien Helleu
1c7b431bc8
api: run hook_print callback also on empty messages
2022-07-02 21:10:48 +02:00
Sébastien Helleu
749bc26926
irc: remove unneeded translation marker (issue #1772 )
2022-07-02 20:41:39 +02:00
Sébastien Helleu
bbf55b734c
irc: start at parameter #2 in callback of messages 524/704/705/706 (issue #1772 )
2022-07-02 20:34:36 +02:00
Sébastien Helleu
2095887be9
irc: fix comments (issue #1772 )
2022-07-02 20:34:34 +02:00
Valentin Lorentz
fa05f75b74
irc: add ERR_HELPNOTFOUND (issue #1772 )
2022-07-02 20:34:31 +02:00
Valentin Lorentz
a96d2c28fb
irc: strip topic name when formatting RPL_HELPSTART/RPL_HELPTXT/RPL_ENDOFHELP (issue #1772 )
2022-07-02 20:34:27 +02:00
Sébastien Helleu
3a0e54d236
php: fix compilation warning about unused arguments
2022-06-30 20:35:59 +02:00
Adam Saponara
24fe646c4e
php: Deprecate forget_* functions in PHP 8+
...
These functions don't work with PHP 8+ and also don't seem to be
necessary anymore when reloading scripts.
2022-06-30 20:33:45 +02:00
Adam Saponara
8cf5848116
php: Add stubs and generate arginfo for PHP API
...
This was preventing the PHP plugin from working if PHP was compiled
with `--enable-debug`. With this patch, `--enable-debug` builds of
PHP should work.
2022-06-30 20:33:13 +02:00
Adam Saponara
3e1a5b4447
php: Adjust API for PHP 8.2
2022-06-30 20:32:20 +02:00
Sébastien Helleu
8788fcedc8
irc: update URLs to IRCv3 specifications
2022-06-25 08:53:03 +02:00
Sébastien Helleu
2c4bad8120
core: add trailing slashes in URLs
2022-06-18 16:18:09 +02:00
Sébastien Helleu
8ac67ff540
doc: add trailing slashes in URLs
2022-06-18 16:05:11 +02:00
Sébastien Helleu
9644df21ad
irc: add example with /allchan in /help autojoin
2022-06-17 21:05:12 +02:00
Sébastien Helleu
17ae43aa03
irc: rename option save to apply in command /autojoin
2022-06-15 22:11:08 +02:00
Sébastien Helleu
86f110db98
core: add completion of conditions and content in commands /item add and /item addreplace (issue #808 )
2022-05-27 22:16:58 +02:00
Sébastien Helleu
a1a9303b14
trigger: fix completion of command /trigger add when there are spaces in the following arguments
2022-05-27 22:16:58 +02:00
Sébastien Helleu
5ef4731c62
core: add examples in /help item (issue #808 )
2022-05-27 22:16:55 +02:00
Sébastien Helleu
007958e82c
core: add display conditions in custom bar items (issue #808 )
2022-05-27 22:16:50 +02:00
Sébastien Helleu
5876a8335f
trigger: fix memory leak in command /trigger addinput
2022-05-27 17:53:56 +02:00
Sébastien Helleu
cefed25912
core: add command /item ( closes #808 )
...
This allows to create custom bar items with evaluated content (like the script
text_item.py does).
2022-05-27 17:53:50 +02:00
Sébastien Helleu
d99fe0bc76
core: allow to remove multiple filters at once with command /filter del
2022-05-11 21:50:53 +02:00
Sébastien Helleu
d4d8117461
irc: remove channel from autojoin option when manually closing a buffer
2022-04-24 22:09:19 +02:00
Sébastien Helleu
4d8df89bb5
irc: fix add of channel to autojoin option when joining a channel with a buffer still opened
2022-04-24 22:09:19 +02:00
Sébastien Helleu
b7f3127bf8
api: allow to catch multiple signals in functions hook_signal and hook_hsignal ( closes #1780 )
2022-04-24 22:09:15 +02:00
Sébastien Helleu
78317f8b55
core: move detailed list of hooks from command "/plugin listfull" to "/debug hooks <plugin>"
2022-04-24 10:28:09 +02:00
Sébastien Helleu
d16640130e
core: add functions to get short description of hooks
2022-04-24 10:06:54 +02:00
Sébastien Helleu
dc367a83f6
core: add missing options "dirs" and "hooks" in description of /debug command arguments
2022-04-23 19:13:16 +02:00
Sébastien Helleu
2a2428902b
trigger: check that buffer notify is not "none" to run command of default trigger beep
2022-04-23 14:15:41 +02:00
Sébastien Helleu
51ed9ec93e
core: add case conversion in evaluation of expressions ( closes #1778 )
2022-04-18 13:46:16 +02:00
Sébastien Helleu
674f52bf58
core: add bar item "spacer"
2022-04-18 09:52:01 +02:00
Sébastien Helleu
0af960dbde
core: use dynamic string functions to build bar window content
2022-04-17 09:20:46 +02:00
Sébastien Helleu
07b54a9932
buflist: fix memory leak when reading config and changing option buflist.look.sort
2022-04-16 20:24:24 +02:00
Sébastien Helleu
f39553152f
relay: fix save of channels when JOIN/PART are received from an IRC relay client ( closes #1771 )
2022-03-30 21:41:14 +02:00
Sébastien Helleu
01f9bcbaba
core: fix bad window size on startup with some terminals like kitty ( closes #1769 )
2022-03-27 17:19:39 +02:00
Sébastien Helleu
872ff1cc6d
irc: fix memory leak in command /autojoin addraw when channels are missing
2022-03-19 10:17:32 +01:00
Sébastien Helleu
8123cb3e0b
irc: ensure old_autojoin and ptr_autojoin are not NULL before comparing them
2022-03-19 10:15:16 +01:00
Trygve Aaberge
827db6dc31
core: Fix regex for constants in the Python stub generator
...
In Python raw strings, newlines can't be escaped with a backslash. If
you do that, both the backslash and the newline become part of the
string. This meant that the regex for constants both started and ended
with a newline which caused every other constant to be skipped.
2022-03-17 21:16:45 +01:00
Sébastien Helleu
6004139098
core: set again TLS verification functions after GnuTLS options are changed ( closes #1763 )
...
When changing the options weechat.network.gnutls_ca_system or
weechat.network.gnutls_ca_user, the GnuTLS credentials are freed then allocated
again, but the verification function used to check the certificate on
connection is not set again.
As a consequence, any TLS connection is made without checking the certificate.
This regression was introduced in version 3.2, when the options were changed to
automatically load system certificates without having to give the path, and to
let user give an extra custom path with certificates.
2022-03-13 18:04:07 +01:00
Sébastien Helleu
c943d3507f
python: add function buffer_new_props in Python stub file
2022-03-13 14:07:22 +01:00
Sébastien Helleu
e5e3a9d2da
api: add function buffer_new_props ( closes #1759 )
2022-03-13 10:35:29 +01:00
Sébastien Helleu
fbbed9fbf7
core: add function gui_buffer_new_props (issue #1759 )
...
This function allows to create a buffer and set properties via a hashtable,
before the signal "buffer_opened" is sent.
2022-03-13 10:35:29 +01:00
Trygve Aaberge
197a7a01e4
scripts: allow null values in config_new_option
...
The plugin API function config_new_option accepts null as the
default_value and/or value however the scripting APIs (except for lua)
didn't allow sending null as a parameter value, so it was impossible to
use it this way. This allows sending a null value for these parameters.
Lua already supported sending in nil for these parameters and it works
as expected, so nothing is changed for this plugin.
For Guile you can now send in #nil, for JavaScript null or undefined,
for Perl undef, for PHP NULL, for Python None, for Ruby nil and for Tcl
$::weechat::WEECHAT_NULL.
In all of these languages except Tcl this is the special value
indicating a missing value. However Tcl only has one type, string, so it
doesn't have a null value. Therefore I created a constant with the value
`\uFFFF\uFFFF\uFFFFWEECHAT_NULL\uFFFF\uFFFF\uFFFF` which is used
instead. This is very unlikely to appear unintentionally. Using the
unicode code point \uFFFF was suggested on
https://wiki.tcl-lang.org/page/null .
I tested this with these scripts:
https://gist.github.com/trygveaa/f91977dde5d2876d502bf55fbf9b50cc
2022-03-12 16:00:38 +01:00
Sébastien Helleu
3f9c46468c
irc: add option "sort" in command /autojoin
2022-03-11 19:31:56 +01:00