From 999ba00ac60fd1d19e3839d2cbbfbdf9d9a0c291 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Tue, 7 Nov 2023 21:50:12 +0100 Subject: [PATCH] irc: fix target buffer of IRC message 337 (whois reply: "is hiding their idle time") --- ChangeLog.adoc | 1 + src/plugins/irc/irc-protocol.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog.adoc b/ChangeLog.adoc index 0b5c1f27b..fc6f7c252 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -20,6 +20,7 @@ Bug fixes:: * core: fix memory leak when config version is invalid or not supported * core: fix crash when "config_version" is present in a configuration file without a value * core: display an error on startup if environment variable "HOME" is not set + * irc: fix target buffer of IRC message 337 (whois reply: "is hiding their idle time") * relay: close properly connection with the IRC client in case of server disconnection (issue #2038) * ruby: fix use of NULL variable when displaying exception diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c index f1222aee8..c104d0db5 100644 --- a/src/plugins/irc/irc-protocol.c +++ b/src/plugins/irc/irc-protocol.c @@ -7844,7 +7844,8 @@ irc_protocol_recv_command (struct t_irc_server *server, IRCB(331, 1, 0, 331), /* no topic for channel */ IRCB(332, 0, 1, 332), /* topic of channel */ IRCB(333, 1, 0, 333), /* topic info (nick/date) */ - IRCB(335, 1, 0, whois_nick_msg), /* is a bot on */ + IRCB(335, 1, 0, whois_nick_msg), /* whois (is a bot on) */ + IRCB(337, 1, 0, whois_nick_msg), /* whois (is hiding idle time) */ IRCB(338, 1, 0, 338), /* whois (host) */ IRCB(341, 1, 0, 341), /* inviting */ IRCB(343, 1, 0, 330_343), /* is opered as */