summaryrefslogtreecommitdiff
path: root/tests/unit/plugins/trigger/test-trigger-config.cpp
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2021-11-13 15:41:31 +0100
committerSébastien Helleu <flashcode@flashtux.org>2021-11-13 15:41:31 +0100
commit05d31b476bd2e17577278c420dce08cd935927b9 (patch)
treefe0b91d669bd68585f654f0afd59a1af828dd56c /tests/unit/plugins/trigger/test-trigger-config.cpp
parent50edb33f1c4b11e7c82c1608f535a8bfd4449269 (diff)
downloadweechat-05d31b476bd2e17577278c420dce08cd935927b9.zip
trigger: hide key and password in command "/msg nickserv setpass nick key password"
Diffstat (limited to 'tests/unit/plugins/trigger/test-trigger-config.cpp')
-rw-r--r--tests/unit/plugins/trigger/test-trigger-config.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/unit/plugins/trigger/test-trigger-config.cpp b/tests/unit/plugins/trigger/test-trigger-config.cpp
index 56300c488..b664e3933 100644
--- a/tests/unit/plugins/trigger/test-trigger-config.cpp
+++ b/tests/unit/plugins/trigger/test-trigger-config.cpp
@@ -170,6 +170,12 @@ TEST(TriggerConfig, DefaultTriggerCmdPass)
WEE_CHECK_MODIFIER_INPUT("/msg nickserv recover alice ******",
"/msg nickserv recover alice secret");
+ /* /msg nickserv setpass <nick> <key> <password> */
+ WEE_CHECK_MODIFIER_INPUT("/msg nickserv setpass alice",
+ "/msg nickserv setpass alice");
+ WEE_CHECK_MODIFIER_INPUT("/msg nickserv setpass alice **********",
+ "/msg nickserv setpass alice key secret");
+
/* /oper <nick> <password> */
WEE_CHECK_MODIFIER_INPUT("/oper alice",
"/oper alice");