1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

tests: add test on IRC notice sent to another nick with channel name at beginning (issue #1991)

This commit is contained in:
Sébastien Helleu
2023-08-01 22:48:43 +02:00
parent f416688e84
commit f4c6caabb3
@@ -2481,6 +2481,14 @@ TEST(IrcProtocolWithServer, notice)
CHECK_CHAN("--", "PvNotice(bob): a notice ",
"irc_notice,nick_bob,host_user@host,log1");
/*
* notice to another nick with channel name at beginning
* (case of a notice sent if echo-message capability is enabled)
*/
RECV(":alice!user@host NOTICE bob :[#test] a notice ");
CHECK_SRV("--", "Notice -> bob: [#test] a notice ",
"irc_notice,notify_private,nick_alice,host_user@host,log1");
/* broken CTCP to channel */
RECV(":bob!user@host NOTICE #test :\01");
CHECK_SRV("--", "CTCP reply from bob: ",