diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2020-07-20 22:20:22 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2020-07-20 22:20:22 +0200 |
commit | ee3a4a1fc01815c64354d1c793fc5330a079b2d9 (patch) | |
tree | d5282ec0ef03892b43d3341527ab57e56bc6fdab /doc/en/includes/autogen_user_commands.en.adoc | |
parent | 5bf571c60f75ec6c502177d4a1110090fac49cce (diff) | |
download | weechat-ee3a4a1fc01815c64354d1c793fc5330a079b2d9.zip |
irc: evaluate command executed by commands /allchan, /allpv and /allserv (closes #1536)
The extra variables are now replaced (in addition to `$server`, `$channel` and
`$nick`):
- `${irc_server.xxx}`: variable xxx in server
- `${irc_channel.xxx}`: variable xxx in channel
Diffstat (limited to 'doc/en/includes/autogen_user_commands.en.adoc')
-rw-r--r-- | doc/en/includes/autogen_user_commands.en.adoc | 34 |
1 files changed, 25 insertions, 9 deletions
diff --git a/doc/en/includes/autogen_user_commands.en.adoc b/doc/en/includes/autogen_user_commands.en.adoc index 745577b9c..d0b24a4fa 100644 --- a/doc/en/includes/autogen_user_commands.en.adoc +++ b/doc/en/includes/autogen_user_commands.en.adoc @@ -17,14 +17,20 @@ target: server name * `+allchan+`: execute a command on all channels of all connected servers ---- -/allchan [-current] [-exclude=<channel>[,<channel>...]] <command> [<arguments>] - [-current] -include=<channel>[,<channel>...] <command> [<arguments>] +/allchan [-current] [-exclude=<channel>[,<channel>...]] <command> + [-current] -include=<channel>[,<channel>...] <command> -current: execute command for channels of current server only -exclude: exclude some channels (wildcard "*" is allowed) -include: include only some channels (wildcard "*" is allowed) command: command to execute -arguments: arguments for command (special variables $nick, $channel and $server are replaced by their value) + +Command and arguments are evaluated (see /help eval), the following variables are replaced: + $server server name + $channel channel name + $nick nick on server + ${irc_server.xxx} variable xxx in server + ${irc_channel.xxx} variable xxx in channel Examples: execute '/me is testing' on all channels: @@ -41,14 +47,20 @@ Examples: * `+allpv+`: execute a command on all private buffers of all connected servers ---- -/allpv [-current] [-exclude=<nick>[,<nick>...]] <command> [<arguments>] - [-current] -include=<nick>[,<nick>...] <command> [<arguments>] +/allpv [-current] [-exclude=<nick>[,<nick>...]] <command> + [-current] -include=<nick>[,<nick>...] <command> -current: execute command for private buffers of current server only -exclude: exclude some nicks (wildcard "*" is allowed) -include: include only some nicks (wildcard "*" is allowed) command: command to execute -arguments: arguments for command (special variables $nick, $channel and $server are replaced by their value) + +Command and arguments are evaluated (see /help eval), the following variables are replaced: + $server server name + $channel channel name + $nick nick on server + ${irc_server.xxx} variable xxx in server + ${irc_channel.xxx} variable xxx in channel Examples: execute '/me is testing' on all private buffers: @@ -67,13 +79,17 @@ Examples: * `+allserv+`: execute a command on all connected servers ---- -/allserv [-exclude=<server>[,<server>...]] <command> [<arguments>] - -include=<server>[,<server>...] <command> [<arguments>] +/allserv [-exclude=<server>[,<server>...]] <command> + -include=<server>[,<server>...] <command> -exclude: exclude some servers (wildcard "*" is allowed) -include: include only some servers (wildcard "*" is allowed) command: command to execute -arguments: arguments for command (special variables $nick, $channel and $server are replaced by their value) + +Command and arguments are evaluated (see /help eval), the following variables are replaced: + $server server name + $nick nick on server + ${irc_server.xxx} variable xxx in server Examples: change nick on all servers: |