diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2018-05-31 22:51:23 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2018-05-31 22:51:23 +0200 |
commit | 53fedfe4e61dd5cf02b822af553ff4767d9034e2 (patch) | |
tree | 2922e732c8133fb0a1ac75b40c7aedf42e08954d /src | |
parent | 1587674e9b7c51e942260697508973ecf5699e88 (diff) | |
download | weechat-53fedfe4e61dd5cf02b822af553ff4767d9034e2.zip |
trigger: hide password in display of command "/msg nickserv set password", support the option "-server xxx"
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/trigger/trigger-config.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/trigger/trigger-config.c b/src/plugins/trigger/trigger-config.c index 8e4ae926a..d12d449fd 100644 --- a/src/plugins/trigger/trigger-config.c +++ b/src/plugins/trigger/trigger-config.c @@ -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:+}}", "", "", |