1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 05:46:38 +02:00

irc: don't open a new private buffer on /msg command when capability echo-message is enabled (closes #2016)

This commit is contained in:
Sébastien Helleu
2023-09-14 11:10:17 +02:00
parent 747d6122bc
commit 4c3ab508c7
3 changed files with 42 additions and 24 deletions
+8 -8
View File
@@ -2781,19 +2781,19 @@ TEST(IrcProtocolWithServer, privmsg)
* message from self nick in private
* (case of bouncer or if echo-message capability is enabled)
*/
RECV(":alice!user@host PRIVMSG alice :this is the message ");
CHECK_PV("alice", "alice", "this is the message ",
"irc_privmsg,self_msg,notify_none,no_highlight,"
"prefix_nick_white,nick_alice,host_user@host,log1");
RECV(":alice!user@host PRIVMSG bob2 :this is the message ");
CHECK_SRV("--", "Msg(alice) -> bob2: this is the message ",
"irc_privmsg,self_msg,notify_none,no_highlight,"
"nick_alice,host_user@host,log1");
/*
* message from self nick in private, with password hidden (nickserv)
* (case of bouncer or if echo-message capability is enabled)
*/
RECV(":alice!user@host PRIVMSG nickserv :identify secret");
CHECK_PV("nickserv", "alice", "identify ******",
"irc_privmsg,self_msg,notify_none,no_highlight,"
"prefix_nick_white,nick_alice,host_user@host,log1");
CHECK_SRV("--", "Msg(alice) -> nickserv: identify ******",
"irc_privmsg,self_msg,notify_none,no_highlight,"
"nick_alice,host_user@host,log1");
/* broken CTCP to channel */
RECV(":bob!user@host PRIVMSG #test :\01");
@@ -2972,7 +2972,7 @@ TEST(IrcProtocolWithServer, privmsg)
}
else
{
CHECK_PV("alice", "--", "CTCP query to alice: CLIENTINFO",
CHECK_SRV("--", "CTCP query to alice: CLIENTINFO",
"irc_privmsg,irc_ctcp,self_msg,notify_none,no_highlight,"
"nick_alice,host_user@host,log1");
/*