summaryrefslogtreecommitdiff
path: root/tests/unit/plugins/irc/test-irc-protocol.cpp
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-09-14 11:10:17 +0200
committerSébastien Helleu <flashcode@flashtux.org>2023-09-14 11:10:17 +0200
commit4c3ab508c728c486306e21ed08ab98bc06e3aa95 (patch)
treee7979272ccc03912e00a03bdc1ba929798d5da0c /tests/unit/plugins/irc/test-irc-protocol.cpp
parent747d6122bcb3af6f0302022c7acace6b8108614b (diff)
downloadweechat-4c3ab508c728c486306e21ed08ab98bc06e3aa95.zip
irc: don't open a new private buffer on `/msg` command when capability echo-message is enabled (closes #2016)
Diffstat (limited to 'tests/unit/plugins/irc/test-irc-protocol.cpp')
-rw-r--r--tests/unit/plugins/irc/test-irc-protocol.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/unit/plugins/irc/test-irc-protocol.cpp b/tests/unit/plugins/irc/test-irc-protocol.cpp
index 61518b3d1..c9ed785d9 100644
--- a/tests/unit/plugins/irc/test-irc-protocol.cpp
+++ b/tests/unit/plugins/irc/test-irc-protocol.cpp
@@ -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");
/*