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:
@@ -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: ",
|
||||
|
||||
Reference in New Issue
Block a user