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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user