From 2654961e1c716e598eab05bdd475d043aa6ec0a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Thu, 25 May 2023 22:43:54 +0200 Subject: [PATCH] irc: display actions sent with `/me` in private buffer instead of server buffer (issue #139) --- src/plugins/irc/irc-protocol.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c index 2e27722e3..9e591c189 100644 --- a/src/plugins/irc/irc-protocol.c +++ b/src/plugins/irc/irc-protocol.c @@ -3152,13 +3152,16 @@ IRC_PROTOCOL_CALLBACK(privmsg) { remote_nick = (nick_is_me) ? pos_target : nick; + /* private message received => display it */ + ptr_channel = irc_channel_search (server, remote_nick); + /* CTCP to user */ if (msg_args[0] == '\01') { if (nick_is_me) { irc_protocol_privmsg_display_ctcp_send ( - server, NULL, remote_nick, msg_args); + server, ptr_channel, remote_nick, msg_args); } else { @@ -3168,9 +3171,6 @@ IRC_PROTOCOL_CALLBACK(privmsg) goto end; } - /* private message received => display it */ - ptr_channel = irc_channel_search (server, remote_nick); - if (ptr_channel) { /* rename buffer if open with nick case not matching */