summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-05-27 15:56:07 +0200
committerSébastien Helleu <flashcode@flashtux.org>2023-05-27 16:49:08 +0200
commit1651c48856e45d27800890092d402615645bc95d (patch)
tree3a391fbc2ec289d3fe26cc5c33fdf146539f8e6a /tests
parent649b9d0ca69a5655be17ad808b5121cb62a825b9 (diff)
downloadweechat-1651c48856e45d27800890092d402615645bc95d.zip
irc: add missing host tag in self messages with cap echo-message enabled (issue #139)
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/plugins/irc/test-irc-protocol.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/unit/plugins/irc/test-irc-protocol.cpp b/tests/unit/plugins/irc/test-irc-protocol.cpp
index 1171f1345..73b829c21 100644
--- a/tests/unit/plugins/irc/test-irc-protocol.cpp
+++ b/tests/unit/plugins/irc/test-irc-protocol.cpp
@@ -2692,7 +2692,8 @@ TEST(IrcProtocolWithServer, privmsg)
*/
RECV(":alice!user@host PRIVMSG #test :\01VERSION\01");
CHECK_SRV("--", "CTCP query to #test: VERSION",
- "irc_privmsg,irc_ctcp,self_msg,notify_none,no_highlight,log1");
+ "irc_privmsg,irc_ctcp,self_msg,notify_none,no_highlight,"
+ "host_user@host,log1");
/*
* valid CTCP to ops of channel from self nick
@@ -2701,11 +2702,11 @@ TEST(IrcProtocolWithServer, privmsg)
RECV(":alice!user@host PRIVMSG @#test :\01ACTION\01");
CHECK_CHAN("--", "Action -> @#test: alice",
"irc_privmsg,irc_action,self_msg,notify_none,no_highlight,"
- "nick_alice,log1");
+ "nick_alice,host_user@host,log1");
RECV(":alice!user@host PRIVMSG @#test :\01ACTION is testing\01");
CHECK_CHAN("--", "Action -> @#test: alice is testing",
"irc_privmsg,irc_action,self_msg,notify_none,no_highlight,"
- "nick_alice,log1");
+ "nick_alice,host_user@host,log1");
/* valid CTCP to user */
RECV(":bob!user@host PRIVMSG alice :\01TEST\01");
@@ -2747,7 +2748,8 @@ TEST(IrcProtocolWithServer, privmsg)
*/
RECV(":alice!user@host PRIVMSG bob :\01VERSION\01");
CHECK_SRV("--", "CTCP query to bob: VERSION",
- "irc_privmsg,irc_ctcp,self_msg,notify_none,no_highlight,log1");
+ "irc_privmsg,irc_ctcp,self_msg,notify_none,no_highlight,"
+ "host_user@host,log1");
/* close xfer buffer */
if (xfer_buffer)