From a4c2d7f8086988a5804b244924d3decea1d98238 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Mon, 29 May 2023 11:10:25 +0200 Subject: [PATCH] irc: fix display of CTCP ACTION sent without parameters nor space --- src/plugins/irc/irc-input.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/irc/irc-input.c b/src/plugins/irc/irc-input.c index 00d64d008..d0cae36c1 100644 --- a/src/plugins/irc/irc-input.c +++ b/src/plugins/irc/irc-input.c @@ -326,7 +326,8 @@ irc_input_send_user_message (struct t_gui_buffer *buffer, int flags, /* display only if capability "echo-message" is NOT enabled */ if (!weechat_hashtable_has_key (ptr_server->cap_list, "echo-message")) { - action = (strncmp (message, "\01ACTION ", 8) == 0); + action = ((strncmp (message, "\01ACTION ", 8) == 0) + || (strncmp (message, "\01ACTION\01", 8) == 0)); list_size = weechat_arraylist_size (list_messages); for (i = 0; i < list_size; i++) {