summaryrefslogtreecommitdiff
path: root/tests/unit/plugins/irc/test-irc-protocol.cpp
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-06-04 09:45:47 +0200
committerSébastien Helleu <flashcode@flashtux.org>2023-06-04 09:45:47 +0200
commite04d8894a098cdd0f6ea015fdd0d5c62b2581ad3 (patch)
tree240bc9070c15caec427e53b4eda5902240750656 /tests/unit/plugins/irc/test-irc-protocol.cpp
parent7f4c3a660a81959347d15d90341d11ddd9927ab9 (diff)
downloadweechat-e04d8894a098cdd0f6ea015fdd0d5c62b2581ad3.zip
irc: add tag "new_host_xxx" in message displayed for command CHGHOST (closes #1808)
Diffstat (limited to 'tests/unit/plugins/irc/test-irc-protocol.cpp')
-rw-r--r--tests/unit/plugins/irc/test-irc-protocol.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/unit/plugins/irc/test-irc-protocol.cpp b/tests/unit/plugins/irc/test-irc-protocol.cpp
index 44ac3fc0c..aed04e590 100644
--- a/tests/unit/plugins/irc/test-irc-protocol.cpp
+++ b/tests/unit/plugins/irc/test-irc-protocol.cpp
@@ -1822,29 +1822,31 @@ TEST(IrcProtocolWithServer, chghost)
/* self nick */
RECV(":alice!user@host CHGHOST user2 host2");
CHECK_CHAN("--", "alice (user@host) has changed host to user2@host2",
- "irc_chghost,nick_alice,host_user@host,log3");
+ "irc_chghost,new_host_user2@host2,nick_alice,host_user@host,log3");
STRCMP_EQUAL("user2@host2", ptr_nick->host);
RECV(":alice!user@host CHGHOST user2 host2");
CHECK_CHAN("--", "alice (user@host) has changed host to user2@host2",
- "irc_chghost,nick_alice,host_user@host,log3");
+ "irc_chghost,new_host_user2@host2,nick_alice,host_user@host,log3");
STRCMP_EQUAL("user2@host2", ptr_nick->host);
RECV(":alice!user2@host2 CHGHOST user3 :host3");
CHECK_CHAN("--", "alice (user2@host2) has changed host to user3@host3",
- "irc_chghost,nick_alice,host_user2@host2,log3");
+ "irc_chghost,new_host_user3@host3,nick_alice,host_user2@host2,log3");
STRCMP_EQUAL("user3@host3", ptr_nick->host);
/* another nick */
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",
- "irc_chghost,irc_smart_filter,nick_bob,host_user@host,log3");
+ "irc_chghost,new_host_user_bob_2@host_bob_2,irc_smart_filter,"
+ "nick_bob,host_user@host,log3");
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",
- "irc_chghost,nick_bob,host_user@host,log3");
+ "irc_chghost,new_host_user_bob_2@host_bob_2,nick_bob,"
+ "host_user@host,log3");
}
/*