summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2018-05-31 21:14:57 +0200
committerSébastien Helleu <flashcode@flashtux.org>2018-05-31 21:14:57 +0200
commit1587674e9b7c51e942260697508973ecf5699e88 (patch)
tree17c9572526fe08e66dbd80d5a1fc8d12117c6557
parent4592c9438f49fde6675503425b5237c168741895 (diff)
downloadweechat-1587674e9b7c51e942260697508973ecf5699e88.zip
trigger: hide password in command "/msg nickserv set password"
-rw-r--r--ChangeLog.adoc1
-rw-r--r--ReleaseNotes.adoc12
-rw-r--r--src/plugins/trigger/trigger-config.c2
3 files changed, 14 insertions, 1 deletions
diff --git a/ChangeLog.adoc b/ChangeLog.adoc
index 2ab6e7e84..a969cdaeb 100644
--- a/ChangeLog.adoc
+++ b/ChangeLog.adoc
@@ -31,6 +31,7 @@ New features::
* irc: display current nick on connected servers in output of /server list|listfull (issue #1193)
* irc: add option "-server" in command /list (issue #1165)
* irc: add indexed ban list, add completion for /unban and /unquiet (issue #597, task #11374, task #10876)
+ * trigger: hide password in command "/msg nickserv set password"
* xfer: add option xfer.network.send_ack (issue #1171)
Bug fixes::
diff --git a/ReleaseNotes.adoc b/ReleaseNotes.adoc
index 5e78474c4..897e8f75d 100644
--- a/ReleaseNotes.adoc
+++ b/ReleaseNotes.adoc
@@ -20,6 +20,18 @@ https://weechat.org/files/changelog/ChangeLog-devel.html[ChangeLog]
[[v2.2]]
== Version 2.2 (under dev)
+[[v2.2_default_triggers]]
+=== Default triggers
+
+The existing trigger "cmd_pass" has been updated to hide password in command
+`/msg nickserv set password`.
+
+You can restore the default trigger with the following command:
+
+----
+/trigger restore cmd_pass
+----
+
[[v2.2_irc_signals_tags]]
=== Tags in IRC "in" signals
diff --git a/src/plugins/trigger/trigger-config.c b/src/plugins/trigger/trigger-config.c
index 8edd61b79..8e4ae926a 100644
--- a/src/plugins/trigger/trigger-config.c
+++ b/src/plugins/trigger/trigger-config.c
@@ -80,7 +80,7 @@ char *trigger_config_default_list[][1 + TRIGGER_NUM_OPTIONS] =
"",
"==^("
"(/(msg|m|quote) +nickserv "
- "+(id|identify|ghost +[^ ]+|release +[^ ]+|regain +[^ ]+|"
+ "+(id|identify|set +password|ghost +[^ ]+|release +[^ ]+|regain +[^ ]+|"
"recover +[^ ]+) +)|"
"/oper +[^ ]+ +|"
"/quote +pass +|"