summaryrefslogtreecommitdiff
path: root/src/plugins/irc/irc-protocol.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-05-25 22:43:54 +0200
committerSébastien Helleu <flashcode@flashtux.org>2023-05-25 22:43:54 +0200
commit2654961e1c716e598eab05bdd475d043aa6ec0a2 (patch)
treef2f6c09c1b20c2ceedda5f80bbbb5440408280f6 /src/plugins/irc/irc-protocol.c
parente50be16730245e2ef5891ac4fc73ef38a34eadf6 (diff)
downloadweechat-2654961e1c716e598eab05bdd475d043aa6ec0a2.zip
irc: display actions sent with `/me` in private buffer instead of server buffer (issue #139)
Diffstat (limited to 'src/plugins/irc/irc-protocol.c')
-rw-r--r--src/plugins/irc/irc-protocol.c8
1 files 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 */