mirror of
https://github.com/weechat/weechat.git
synced 2026-06-12 14:14:48 +02:00
irc: fix display of CTCP query sent multiple times to the same user when capability echo-message is enabled (closes #2309)
This commit is contained in:
@@ -21,6 +21,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
- core: fix crash with `/eval` when the current buffer is closed in a command
|
||||
- core: fix buffer size in function util_parse_time, causing buffer overflow error in unit tests
|
||||
- irc: fix display of CTCP query sent multiple times to the same user when capability echo-message is enabled ([#2309](https://github.com/weechat/weechat/issues/2309))
|
||||
- irc: fix unit of server option `anti_flood` from seconds to milliseconds in output of `/server listfull`
|
||||
- irc: fix creation of irc.msgbuffer option without a server name
|
||||
- irc: ignore self join if the channel is already joined ([#2291](https://github.com/weechat/weechat/issues/2291))
|
||||
|
||||
@@ -2522,7 +2522,8 @@ IRC_PROTOCOL_CALLBACK(notice)
|
||||
"echo-message");
|
||||
msg_already_received = weechat_hashtable_has_key (
|
||||
ctxt->server->echo_msg_recv, ctxt->irc_message);
|
||||
if (!msg_already_received && cap_echo_message)
|
||||
if (!msg_already_received && cap_echo_message
|
||||
&& (strcmp (ctxt->nick, pos_target) == 0))
|
||||
{
|
||||
time_now = time (NULL);
|
||||
weechat_hashtable_set (ctxt->server->echo_msg_recv,
|
||||
@@ -3228,7 +3229,8 @@ IRC_PROTOCOL_CALLBACK(privmsg)
|
||||
{
|
||||
msg_already_received = weechat_hashtable_has_key (
|
||||
ctxt->server->echo_msg_recv, ctxt->irc_message);
|
||||
if (!msg_already_received && cap_echo_message)
|
||||
if (!msg_already_received && cap_echo_message
|
||||
&& (strcmp (ctxt->nick, remote_nick) == 0))
|
||||
{
|
||||
time_now = time (NULL);
|
||||
weechat_hashtable_set (ctxt->server->echo_msg_recv,
|
||||
|
||||
Reference in New Issue
Block a user