diff options
-rw-r--r-- | ChangeLog.adoc | 1 | ||||
-rw-r--r-- | ReleaseNotes.adoc | 15 | ||||
-rw-r--r-- | src/plugins/trigger/trigger-config.c | 14 |
3 files changed, 28 insertions, 2 deletions
diff --git a/ChangeLog.adoc b/ChangeLog.adoc index e01cb8b2e..e31d1fee7 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -21,6 +21,7 @@ https://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes] Improvements:: * irc: change default value of option irc.network.lag_reconnect to 300 (issue #818) + * trigger: do not hide email in command "/msg nickserv register password email" (issue #849) Bug fixes:: diff --git a/ReleaseNotes.adoc b/ReleaseNotes.adoc index 80602b0d3..6d8eec1f2 100644 --- a/ReleaseNotes.adoc +++ b/ReleaseNotes.adoc @@ -17,6 +17,21 @@ https://weechat.org/files/changelog/ChangeLog-devel.html[ChangeLog] (file _ChangeLog.adoc_ in sources). +[[v1.7]] +== Version 1.7 (under dev) + +A new trigger "cmd_pass_register" has been added to hide only password and not +email in command `/msg nickserv register password email`. + +The existing trigger "cmd_pass" has been updated to hide password in all +commands except `/msg nickserv register`. + +You can add the new trigger and restore the other one with the following +command: + +---- +/trigger restore cmd_pass_register cmd_pass +---- + [[v1.6]] == Version 1.6 (2016-10-02) 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", |