1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-25 20:36:38 +02:00

irc: hide password in messages to nickserv with cap echo-message enabled (issue #139)

This commit is contained in:
Sébastien Helleu
2023-05-29 09:49:41 +02:00
parent ea38779c85
commit 031bcf5ff2
2 changed files with 15 additions and 2 deletions
@@ -2744,6 +2744,15 @@ TEST(IrcProtocolWithServer, privmsg)
"irc_privmsg,self_msg,notify_none,no_highlight,"
"prefix_nick_white,nick_alice,host_user@host,log1");
/*
* message from self nick in private, with password hidden (nickserv)
* (case of bouncer of 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");
/* broken CTCP to channel */
RECV(":bob!user@host PRIVMSG #test :\01");
CHECK_CHAN("--", "Unknown CTCP requested by bob: ",