Sébastien Helleu
e5df225d9f
irc: limit size of data received from the server to prevent memory exhaustion
...
A malicious or compromised IRC server could send data with no end-of-line
(or a flood of "005" messages), making WeeChat accumulate it in a buffer
that grew without limit, until all memory was exhausted.
The unterminated received message and the accumulated "005" (ISUPPORT)
data are now bounded by IRC_SERVER_RECV_MSG_MAX_LENGTH and
IRC_SERVER_ISUPPORT_MAX_LENGTH: extra data is ignored once the limit is
reached.
2026-06-06 14:17:41 +02:00
Sébastien Helleu
86d4da2fd1
irc: display nick changes and quit messages when option irc.look.ignore_tag_messages is enabled ( closes #2241 )
2025-03-28 12:11:29 +01:00
Sébastien Helleu
547e2b934e
core: update copyright dates
2025-02-01 23:13:18 +01:00
Sébastien Helleu
45509e1cd1
irc: replace calls to malloc by weechat_asprintf
2024-12-21 15:12:33 +01:00
Josh Soref
7fb77aabfa
spelling: wildcard
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2024-09-28 21:22:56 +02:00
Sébastien Helleu
6534919868
irc: decode IRC color codes only when displaying messages
...
Before parsing IRC messages, they were almost all changed to convert IRC color
codes to WeeChat color codes, which caused some bugs when storing data like
account and real names (stored with WeeChat color codes instead of IRC colors).
Now the messages are parsed as-is, then the colors are converted only when
strings are displayed in a buffer by `weechat_printf()`.
2024-09-22 23:05:16 +02:00
Sébastien Helleu
02847246b2
core, plugins, tests: fix octal notation in strings
2024-09-19 08:34:18 +02:00
Sébastien Helleu
01103cb02a
irc: do not strip trailing spaces from incoming IRC messages
2024-09-15 21:47:32 +02:00
Sébastien Helleu
143f694fe2
core, plugins: add missing parentheses when dereferencing a pointer with an array index
2024-09-05 20:57:29 +02:00
Sébastien Helleu
3253500d15
irc: add option irc.look.notice_nicks_disable_notify
2024-09-02 19:55:27 +02:00
Sébastien Helleu
9ece7b4d8c
core, plugins: fix typo in comments
2024-07-22 11:49:26 +02:00
Sébastien Helleu
cadd04693a
irc: add support of message 569 (whois, connecting from) ( closes #2162 )
2024-07-22 10:39:03 +02:00
Sébastien Helleu
827a056790
irc: remove redefinition of bar item "input_prompt"
...
The new buffer property "input_prompt" is used instead.
2024-05-11 14:05:52 +02:00
Sébastien Helleu
5991278637
irc: rename function irc_server_buffer_set_input_multiline to irc_server_set_buffer_input_multiline
2024-05-09 15:55:31 +02:00
Sébastien Helleu
7af01a56ca
plugins: remove check of NULL pointers before calling weechat_string_dyn_free() (issue #865 )
2024-04-26 08:53:22 +02:00
Sébastien Helleu
9a5a1fb300
plugins: remove check of NULL pointers before calling weechat_string_free_split() (issue #865 )
2024-04-26 08:53:22 +02:00
Sébastien Helleu
529a22e342
plugins: remove check of NULL pointers before calling weechat_unhook() (issue #865 )
2024-04-26 08:41:44 +02:00
Sébastien Helleu
2bbf289635
irc: remove check of NULL pointers before calling free() (issue #865 )
2024-04-25 20:59:24 +02:00
Sébastien Helleu
40bfded594
irc: fix display of reply for CTCP request received on a channel when capability echo-message is enabled
2024-04-06 22:44:04 +02:00
Sébastien Helleu
90c87e7553
irc: add missing tags on self action messages when capability echo-message is enabled ( closes #2074 )
2024-02-16 20:58:31 +01:00
Sébastien Helleu
0cfc61a17e
irc: add server option "autojoin_delay" ( closes #862 )
...
The server option "autojoin_delay" adds a delay before autojoin.
The server option "command_delay" is now used to add a delay before the
execution of the command.
On upgrade from an old version, the option "command_delay" is copied to
"autojoin_delay" (in old versions, "command_delay" was applied after the
execution of command and before the autojoin).
2024-02-11 09:12:57 +01:00
Sébastien Helleu
06b4e46977
irc: fix random date displayed when a received message contains tags but no "time" ( closes #2064 )
2024-01-22 13:18:25 +01:00
Sébastien Helleu
4a1e5e7eaa
irc: remove function irc_protocol_parse_time, use API function weechat_util_parse_time (issue #649 )
2024-01-05 19:28:47 +01:00
Sébastien Helleu
eecb2a997e
core: update copyright dates
2024-01-01 22:29:58 +01:00
Sébastien Helleu
9fb3d3f14c
core: store microseconds in buffer lines ( closes #649 )
2023-12-26 19:44:37 +01:00
Sébastien Helleu
fa0b320178
core: fix style
2023-12-14 23:11:35 +01:00
Sébastien Helleu
b3422b96c0
irc: add option irc.look.display_host_wallops
2023-12-10 21:13:00 +01:00
Sébastien Helleu
22fcb91e8b
irc: display messages 730/731 even if command /notify was not used ( closes #2049 )
2023-11-29 18:14:37 +01:00
Sébastien Helleu
f7b7e3975a
irc: add server option "anti_flood", remove server options "anti_flood_prio_{high|low}" (issue #1039 )
...
The new option is set in milliseconds.
2023-11-29 09:49:27 +01:00
Sébastien Helleu
515d4241ad
irc: fix target buffer of IRC message 337 (whois reply: "is hiding their idle time")
2023-11-07 21:50:12 +01:00
Sébastien Helleu
6d69cde186
core, plugins: set error to NULL before calling strtol()
...
This is not strictly necessary, just in case the function strtol() doesn't
update the pointer.
2023-11-01 09:53:38 +01:00
Sébastien Helleu
21759171d2
irc: add tags "nick_xxx" and "host_xxx" in all messages, including self and server messages
2023-10-30 08:23:20 +01:00
Sébastien Helleu
a88b8f7ed2
irc: revert compute of nick colors to case sensitive way, deprecate again IRC nick color infos (issue #194 , issue #2032 )
2023-10-19 23:38:28 +02:00
Sébastien Helleu
9bc9df47d7
irc: add option irc.look.ignore_tag_messages ( closes #989 )
2023-10-15 18:45:11 +02:00
Sébastien Helleu
3898449dc2
irc: add structure with context sent as unique parameter to IRC protocol callbacks (issue #989 )
2023-10-15 18:40:01 +02:00
Sébastien Helleu
f72fb3be4b
irc: display "owner" for +q and "admin" for +a in output of /names ( closes #2020 , issue #97 )
2023-09-22 23:21:22 +02:00
Sébastien Helleu
cb680ef9df
irc: add option irc.look.open_pv_buffer_echo_msg (issue #2016 )
2023-09-14 20:19:05 +02:00
Sébastien Helleu
63fc9aace8
irc: update title in query buffer when remote nick is myself (issue #2016 )
2023-09-14 16:15:09 +02:00
Sébastien Helleu
a2c3322df7
irc: fix title of query buffer for own messages received (issue #2016 )
2023-09-14 15:22:11 +02:00
Sébastien Helleu
049e9d23c5
irc: open a query buffer on PRIVMSG received from self nick when capability echo-message is NOT enabled (issue #2016 )
2023-09-14 14:51:50 +02:00
Sébastien Helleu
4c3ab508c7
irc: don't open a new private buffer on /msg command when capability echo-message is enabled ( closes #2016 )
2023-09-14 11:10:17 +02:00
Sébastien Helleu
4e173c1972
irc: fix title of private buffers wrongly set to own address when capability echo-message is enabled (issue #2016 )
2023-09-14 08:04:44 +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
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
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
64cb3e6a63
irc: fix wrong time displayed for CTCP messages received from self nick ( closes #2000 )
2023-08-18 23:57:35 +02:00
Sébastien Helleu
17674f7b11
irc: add missing tags on multiline messages ( closes #1987 )
2023-08-09 14:53:03 +02:00
Sébastien Helleu
03daae3059
irc: fix display of outgoing notice with channel when capability "echo-message" is enabled ( closes #1991 )
2023-08-01 22:35:21 +02:00
Sébastien Helleu
b0549e4d09
irc: add channel in "autojoin" server option only when the channel is actually joined ( closes #1990 )
2023-08-01 21:45:28 +02:00