diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2016-11-19 14:20:10 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2016-11-19 14:20:10 +0100 |
commit | 68d5a89b3d54c605186c27fe6c4917956c8a5f21 (patch) | |
tree | 303da272baa7e05091ed65a554029a8d4b43d55c /src/plugins/trigger/trigger-config.c | |
parent | d33c6d8a9d469d6cb4f7b7744defcde7f7f98a04 (diff) | |
download | weechat-68d5a89b3d54c605186c27fe6c4917956c8a5f21.zip |
trigger: do not hide email in command "/msg nickserv register password email" (closes #849)
Diffstat (limited to 'src/plugins/trigger/trigger-config.c')
-rw-r--r-- | src/plugins/trigger/trigger-config.c | 14 |
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", |