1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

irc: display actions sent with /me in private buffer instead of server buffer (issue #139)

This commit is contained in:
Sébastien Helleu
2023-05-25 22:43:54 +02:00
parent e50be16730
commit 2654961e1c
+4 -4
View File
@@ -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 */