summaryrefslogtreecommitdiff
path: root/tests/unit/plugins/irc
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2022-08-13 22:15:29 +0200
committerSébastien Helleu <flashcode@flashtux.org>2022-08-13 22:16:46 +0200
commitd3b84eaf6c5235b473b46d83234d10369861b039 (patch)
tree93c4281d4fd5cf800e1eddaa9503d6209ee58126 /tests/unit/plugins/irc
parentac50a5dda7573052b269821a85d0d437b70b92c2 (diff)
downloadweechat-d3b84eaf6c5235b473b46d83234d10369861b039.zip
irc: display CHGHOST command in private buffers
Diffstat (limited to 'tests/unit/plugins/irc')
-rw-r--r--tests/unit/plugins/irc/test-irc-protocol.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/unit/plugins/irc/test-irc-protocol.cpp b/tests/unit/plugins/irc/test-irc-protocol.cpp
index c3d3872aa..7240cd461 100644
--- a/tests/unit/plugins/irc/test-irc-protocol.cpp
+++ b/tests/unit/plugins/irc/test-irc-protocol.cpp
@@ -879,6 +879,8 @@ TEST(IrcProtocolWithServer, chghost)
SRV_INIT_JOIN2;
+ RECV(":bob!user@host PRIVMSG alice :hi Alice!");
+
ptr_nick = ptr_server->channels->nicks;
ptr_nick2 = ptr_server->channels->last_nick;
@@ -913,6 +915,7 @@ TEST(IrcProtocolWithServer, chghost)
RECV(":bob!user@host CHGHOST user_bob_2 host_bob_2");
CHECK_CHAN("-- bob (user@host) has changed host to user_bob_2@host_bob_2");
STRCMP_EQUAL("user_bob_2@host_bob_2", ptr_nick2->host);
+ CHECK_PV("bob", "-- bob (user@host) has changed host to user_bob_2@host_bob_2");
}
/*