1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-07 02:03:13 +02:00

trigger: do not hide email in command "/msg nickserv register password email" (closes #849)

This commit is contained in:
Sébastien Helleu
2016-11-19 14:20:10 +01:00
parent d33c6d8a9d
commit 68d5a89b3d
3 changed files with 28 additions and 2 deletions
+12 -2
View File
@@ -59,14 +59,14 @@ char *trigger_config_default_list[][1 + TRIGGER_NUM_OPTIONS] =
"/print -beep",
"ok",
"" },
/* hide passwords in commands */
/* hide passwords in commands (except "/msg nickserv register") */
{ "cmd_pass", "on",
"modifier",
"5000|input_text_display;5000|history_add;5000|irc_command_auth",
"",
"==^("
"(/(msg|m|quote) +nickserv "
"+(id|identify|register|ghost +[^ ]+|release +[^ ]+|regain +[^ ]+|"
"+(id|identify|ghost +[^ ]+|release +[^ ]+|regain +[^ ]+|"
"recover +[^ ]+) +)|"
"/oper +[^ ]+ +|"
"/quote +pass +|"
@@ -77,6 +77,16 @@ char *trigger_config_default_list[][1 + TRIGGER_NUM_OPTIONS] =
"",
"",
"" },
/* hide passwords in command "/msg nickserv register" */
{ "cmd_pass_register", "on",
"modifier",
"5000|input_text_display;5000|history_add;5000|irc_command_auth",
"",
"==^(/(msg|m|quote) +nickserv +register +)([^ ]+)(.*)"
"==${re:1}${hide:*,${re:3}}${re:4}",
"",
"",
"" },
/* hide password in IRC auth message displayed */
{ "msg_auth", "on",
"modifier",