trigger: hide password in display of command "/msg nickserv set password", support the option "-server xxx"

v2.8-utf8proc
Sébastien Helleu 2018-05-31 22:51:23 +02:00
parent 1587674e9b
commit 53fedfe4e6
2 changed files with 8 additions and 7 deletions

View File

@ -23,13 +23,14 @@ https://weechat.org/files/changelog/ChangeLog-devel.html[ChangeLog]
[[v2.2_default_triggers]]
=== Default triggers
The existing trigger "cmd_pass" has been updated to hide password in command
`/msg nickserv set password`.
The existing triggers "cmd_pass" and "msg_auth" have been updated to hide
password in command `/msg nickserv set password` and support the option
`-server xxx`.
You can restore the default trigger with the following command:
You can restore the default triggers with the following command:
----
/trigger restore cmd_pass
/trigger restore cmd_pass msg_auth
----
[[v2.2_irc_signals_tags]]

View File

@ -79,7 +79,7 @@ char *trigger_config_default_list[][1 + TRIGGER_NUM_OPTIONS] =
"5000|input_text_display;5000|history_add;5000|irc_command_auth",
"",
"==^("
"(/(msg|m|quote) +nickserv "
"(/(msg|m|quote) +(-server +[^ ]+ +)?nickserv "
"+(id|identify|set +password|ghost +[^ ]+|release +[^ ]+|regain +[^ ]+|"
"recover +[^ ]+) +)|"
"/oper +[^ ]+ +|"
@ -112,8 +112,8 @@ char *trigger_config_default_list[][1 + TRIGGER_NUM_OPTIONS] =
"modifier",
"5000|irc_message_auth",
"",
"==^(.*(id|identify|register|ghost +[^ ]+|release +[^ ]+|regain +[^ ]+|"
"recover +[^ ]+) +)(.*)"
"==^(.*(id|identify|set +password|register|ghost +[^ ]+|release +[^ ]+|"
"regain +[^ ]+|recover +[^ ]+) +)(.*)"
"==${re:1}${hide:*,${re:+}}",
"",
"",