summaryrefslogtreecommitdiff
path: root/src/plugins/trigger
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2016-11-19 14:20:10 +0100
committerSébastien Helleu <flashcode@flashtux.org>2016-11-19 14:20:10 +0100
commit68d5a89b3d54c605186c27fe6c4917956c8a5f21 (patch)
tree303da272baa7e05091ed65a554029a8d4b43d55c /src/plugins/trigger
parentd33c6d8a9d469d6cb4f7b7744defcde7f7f98a04 (diff)
downloadweechat-68d5a89b3d54c605186c27fe6c4917956c8a5f21.zip
trigger: do not hide email in command "/msg nickserv register password email" (closes #849)
Diffstat (limited to 'src/plugins/trigger')
-rw-r--r--src/plugins/trigger/trigger-config.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/plugins/trigger/trigger-config.c b/src/plugins/trigger/trigger-config.c
index b610a0f48..6632a15bd 100644
--- a/src/plugins/trigger/trigger-config.c
+++ b/src/plugins/trigger/trigger-config.c
@@ -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",