From b63fca15fa199372faf4732a52c7b4e10570b8e3 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sun, 10 Mar 2013 08:27:55 +0100 Subject: [PATCH] alias: mention local variables of buffer in /help alias --- doc/de/autogen/user/alias_commands.txt | 41 +++++++++++++------------- doc/en/autogen/user/alias_commands.txt | 5 ++-- doc/fr/autogen/user/alias_commands.txt | 5 ++-- doc/it/autogen/user/alias_commands.txt | 41 +++++++++++++------------- doc/ja/autogen/user/alias_commands.txt | 39 ++++++++++++------------ po/cs.po | 8 ++--- po/de.po | 10 +++---- po/es.po | 10 +++---- po/fr.po | 16 +++++----- po/hu.po | 8 ++--- po/it.po | 10 +++---- po/ja.po | 10 +++---- po/pl.po | 10 +++---- po/pt_BR.po | 8 ++--- po/ru.po | 8 ++--- po/weechat.pot | 8 ++--- src/plugins/alias/alias.c | 7 +++-- 17 files changed, 120 insertions(+), 124 deletions(-) diff --git a/doc/de/autogen/user/alias_commands.txt b/doc/de/autogen/user/alias_commands.txt index c45075a52..55da30fca 100644 --- a/doc/de/autogen/user/alias_commands.txt +++ b/doc/de/autogen/user/alias_commands.txt @@ -3,32 +3,31 @@ ........................................ /alias [-completion ] [ [;...]] -completion: optionale Vervollständigung für einen Alias-Befehl (Standardverhalten: Vervollständigung wird auf den Zielbefehl angewendet) - Hinweis: Mit der Variablen "%%command" kann eine Vervollständigung eines vorhandenen Befehls durchgeführt werden - alias: Name des Alias (kann mit Joker "*" beginnen oder enden um Aliase aufzulisten) - command: Name des zuzuordnenden Befehls (WeeChat- oder IRC-Befehl ohne führenden '/', mehrere Befehle müssen durch Semikolon getrennt werden) +completion: completion for alias (optional, by default completion is done with target command) + note: you can use %%command to use completion of an existing command + alias: name of alias (can start or end with "*" for alias listing) + command: command name with arguments (many commands can be separated by semicolons) -Ohne Angabe von Argumenten werden alle definierten Aliase angezeigt. +Without argument, this command lists all defined alias. -Anmerkung: Im Befehl können Variablen genutzt werden, die dann durch den entsprechenden Wert ersetzt werden: - $n: Argument 'n' (zwischen 1 und 9) - $-m: Argumente von 1 bis 'm' - $n-: Argumente von 'n' bis zum letzten Argument - $n-m: Argumente von 'n' bis 'm' - $*: alle Argumente - $~: letztes Argument - $nick: aktueller Nick - $channel: aktueller Channel - $server: aktueller Server +Note: in command, special variables are replaced: + $n: argument 'n' (between 1 and 9) + $-m: arguments from 1 to 'm' + $n-: arguments from 'n' to last + $n-m: arguments from 'n' to 'm' + $*: all arguments + $~: last argument + $var: where "var" is a local variable of buffer (see /buffer localvar) + examples: $nick, $channel, $server, $plugin, $name -Um ein Alias zu löschen wird der Befehl "/unalias" genutzt. +To remove an alias, use command /unalias. -Beispiele: - Alias "/split" wird anlegt um damit ein Fenster horizontal zu teilen: +Examples: + alias /split to split window horizontally: /alias split /window splith - Alias "/hallo" wird angelegt um in allen Channels, außer im #weechat Channel, den Text "Hallo" auszugeben: - /alias hallo /allchan -exclude=#weechat msg * Hallo - Alias "/forcejoin" wird angelegt um den IRC Befehl "forcejoin" mit einer Vervollständigung von /sajoin auszuführen: + alias /hello to say "hello" on all channels but not on #weechat: + /alias hello /allchan -exclude=#weechat msg * hello + alias /forcejoin to send IRC command "forcejoin" with completion of /sajoin: /alias -completion %%sajoin forcejoin /quote forcejoin ........................................ diff --git a/doc/en/autogen/user/alias_commands.txt b/doc/en/autogen/user/alias_commands.txt index 9db1ec962..7e032c954 100644 --- a/doc/en/autogen/user/alias_commands.txt +++ b/doc/en/autogen/user/alias_commands.txt @@ -17,9 +17,8 @@ Note: in command, special variables are replaced: $n-m: arguments from 'n' to 'm' $*: all arguments $~: last argument - $nick: current nick - $channel: current channel - $server: current server + $var: where "var" is a local variable of buffer (see /buffer localvar) + examples: $nick, $channel, $server, $plugin, $name To remove an alias, use command /unalias. diff --git a/doc/fr/autogen/user/alias_commands.txt b/doc/fr/autogen/user/alias_commands.txt index 739e4e718..060c8dd34 100644 --- a/doc/fr/autogen/user/alias_commands.txt +++ b/doc/fr/autogen/user/alias_commands.txt @@ -17,9 +17,8 @@ Note: dans la commande, les variables spéciales sont remplacées: $n-m: paramètres de 'n' à 'm' $*: tous les paramètres $~: le dernier paramètre - $nick: pseudo courant - $channel: canal courant - $server: serveur courant + $var: où "var" est une variable locale du tampon (voir /buffer localvar) + exemples: $nick, $channel, $server, $plugin, $name Pour supprimer un alias, utilisez la commande /unalias. diff --git a/doc/it/autogen/user/alias_commands.txt b/doc/it/autogen/user/alias_commands.txt index 782799073..1d08bfb06 100644 --- a/doc/it/autogen/user/alias_commands.txt +++ b/doc/it/autogen/user/alias_commands.txt @@ -3,32 +3,31 @@ ........................................ /alias [-completion ] [ [;...]] -completamento: completamento per l'alias (opzionale, per default il completamento viene eseguito con il comando di destinazione) - nota: è possibile usare %%comando per usare il completamento di un comando esistente - alias: nome dell'alias (può iniziare o terminare con "*" per elencare gli alias) - comando: nome del comando con gli argomenti (più comandi vanno separati da punto e virgola) +completion: completion for alias (optional, by default completion is done with target command) + note: you can use %%command to use completion of an existing command + alias: name of alias (can start or end with "*" for alias listing) + command: command name with arguments (many commands can be separated by semicolons) -Senza argomento, questo comando elenca tutti gli alias definiti. +Without argument, this command lists all defined alias. -Nota: nel comando, vengono sostituite le variabili speciali: - $n: argomento 'n' (tra 1 e 9) - $-m: argomenti da 1 a 'm' - $n-: argomenti da 'n' all'ultimo - $n-m: argomenti da 'n' a 'm' - $*: tutti gli argomenti - $~: l'ultimo argomento - $nick: nick corrente - $channel: canale corrente - $server: server corrente +Note: in command, special variables are replaced: + $n: argument 'n' (between 1 and 9) + $-m: arguments from 1 to 'm' + $n-: arguments from 'n' to last + $n-m: arguments from 'n' to 'm' + $*: all arguments + $~: last argument + $var: where "var" is a local variable of buffer (see /buffer localvar) + examples: $nick, $channel, $server, $plugin, $name -Per rimuovere un alias, usare il comando /unalias. +To remove an alias, use command /unalias. -Esempi: - alias /split per dividere la finestra orizzontalmente: +Examples: + alias /split to split window horizontally: /alias split /window splith - alias /ciao per dire "ciao" su tutti i canali tranne #weechat: - /alias ciao /allchan -exclude=#weechat msg * ciao - alias /forcejoin per inviare il comando IRC "forcejoin" con il completamento di /sajoin: + alias /hello to say "hello" on all channels but not on #weechat: + /alias hello /allchan -exclude=#weechat msg * hello + alias /forcejoin to send IRC command "forcejoin" with completion of /sajoin: /alias -completion %%sajoin forcejoin /quote forcejoin ........................................ diff --git a/doc/ja/autogen/user/alias_commands.txt b/doc/ja/autogen/user/alias_commands.txt index de2cf0024..e22ab0319 100644 --- a/doc/ja/autogen/user/alias_commands.txt +++ b/doc/ja/autogen/user/alias_commands.txt @@ -3,32 +3,31 @@ ........................................ /alias [-completion ] [ [;...]] -completion: 別名の補完 (オプション、デフォルトではターゲットコマンドを伴って補完される) - 注意: %%command で存在するコマンドの補完を利用可能 - alias: 別名の名前 ("*" で始めるか終われば別名をリストアップ) - command: 引数を含めたコマンド名 (セミコロンで分割すれば複数のコマンドを指定できる) +completion: completion for alias (optional, by default completion is done with target command) + note: you can use %%command to use completion of an existing command + alias: name of alias (can start or end with "*" for alias listing) + command: command name with arguments (many commands can be separated by semicolons) -引数無しでは、定義済み別名をリストアップ。 +Without argument, this command lists all defined alias. -注意: command の中では、特殊変数の置換が行われる: - $n: 'n' 番目の引数 (1 から 9) - $-m: 1 から 'm' 番目の引数 - $n-: 'n' 番目から最後の引数 - $n-m: 'n' から 'm' 番目の引数 - $*: 全ての引数 - $~: 最後の引数 - $nick: 現在のニックネーム - $channel: 現在のチャンネル - $server: 現在のサーバ +Note: in command, special variables are replaced: + $n: argument 'n' (between 1 and 9) + $-m: arguments from 1 to 'm' + $n-: arguments from 'n' to last + $n-m: arguments from 'n' to 'm' + $*: all arguments + $~: last argument + $var: where "var" is a local variable of buffer (see /buffer localvar) + examples: $nick, $channel, $server, $plugin, $name -別名を削除するには /unalias コマンドを使ってください: +To remove an alias, use command /unalias. -例: - /split をウィンドウを水平方向に分割する別名と定義: +Examples: + alias /split to split window horizontally: /alias split /window splith - /hello を #weechat を除く全てのチャンネルで "hello" と発言する別名と定義: + alias /hello to say "hello" on all channels but not on #weechat: /alias hello /allchan -exclude=#weechat msg * hello - /forcejoin を /sajoin の補完候補を使い IRC コマンド "forcejoin" を送信する別名と定義: + alias /forcejoin to send IRC command "forcejoin" with completion of /sajoin: /alias -completion %%sajoin forcejoin /quote forcejoin ........................................ diff --git a/po/cs.po b/po/cs.po index 958a59d8b..201f3d406 100644 --- a/po/cs.po +++ b/po/cs.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.1-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-02-26 21:38+0100\n" +"POT-Creation-Date: 2013-03-10 08:23+0100\n" "PO-Revision-Date: 2013-02-23 11:11+0100\n" "Last-Translator: Jiri Golembiovsky \n" "Language-Team: weechat-dev \n" @@ -3687,9 +3687,9 @@ msgid "" " $n-m: arguments from 'n' to 'm'\n" " $*: all arguments\n" " $~: last argument\n" -" $nick: current nick\n" -" $channel: current channel\n" -" $server: current server\n" +" $var: where \"var\" is a local variable of buffer (see /buffer " +"localvar)\n" +" examples: $nick, $channel, $server, $plugin, $name\n" "\n" "To remove an alias, use command /unalias.\n" "\n" diff --git a/po/de.po b/po/de.po index 1d0cea135..1d0c32065 100644 --- a/po/de.po +++ b/po/de.po @@ -22,7 +22,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.1-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-02-26 21:38+0100\n" +"POT-Creation-Date: 2013-03-10 08:23+0100\n" "PO-Revision-Date: 2013-02-23 18:31+0100\n" "Last-Translator: Nils Görs \n" "Language-Team: German \n" @@ -4111,7 +4111,7 @@ msgstr "Einem Befehl wird ein Alias zugewiesen" msgid "[-completion ] [ [;...]]" msgstr "[-completion ] [ [;...]]" -#, c-format +#, fuzzy, c-format msgid "" "completion: completion for alias (optional, by default completion is done " "with target command)\n" @@ -4130,9 +4130,9 @@ msgid "" " $n-m: arguments from 'n' to 'm'\n" " $*: all arguments\n" " $~: last argument\n" -" $nick: current nick\n" -" $channel: current channel\n" -" $server: current server\n" +" $var: where \"var\" is a local variable of buffer (see /buffer " +"localvar)\n" +" examples: $nick, $channel, $server, $plugin, $name\n" "\n" "To remove an alias, use command /unalias.\n" "\n" diff --git a/po/es.po b/po/es.po index 1ff56dfe5..f5f5d3f18 100644 --- a/po/es.po +++ b/po/es.po @@ -22,7 +22,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.1-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-02-26 21:38+0100\n" +"POT-Creation-Date: 2013-03-10 08:23+0100\n" "PO-Revision-Date: 2013-02-23 11:11+0100\n" "Last-Translator: Elián Hanisch \n" "Language-Team: weechat-dev \n" @@ -3859,7 +3859,7 @@ msgstr "crear un alias para un comando" msgid "[-completion ] [ [;...]]" msgstr "[-completion ] [ [;...]]" -#, c-format +#, fuzzy, c-format msgid "" "completion: completion for alias (optional, by default completion is done " "with target command)\n" @@ -3878,9 +3878,9 @@ msgid "" " $n-m: arguments from 'n' to 'm'\n" " $*: all arguments\n" " $~: last argument\n" -" $nick: current nick\n" -" $channel: current channel\n" -" $server: current server\n" +" $var: where \"var\" is a local variable of buffer (see /buffer " +"localvar)\n" +" examples: $nick, $channel, $server, $plugin, $name\n" "\n" "To remove an alias, use command /unalias.\n" "\n" diff --git a/po/fr.po b/po/fr.po index 3ddc07792..28b7c3747 100644 --- a/po/fr.po +++ b/po/fr.po @@ -21,8 +21,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.1-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-02-26 21:38+0100\n" -"PO-Revision-Date: 2013-02-26 21:39+0100\n" +"POT-Creation-Date: 2013-03-10 08:23+0100\n" +"PO-Revision-Date: 2013-03-10 08:24+0100\n" "Last-Translator: Sebastien Helleu \n" "Language-Team: weechat-dev \n" "Language: French\n" @@ -4013,9 +4013,9 @@ msgid "" " $n-m: arguments from 'n' to 'm'\n" " $*: all arguments\n" " $~: last argument\n" -" $nick: current nick\n" -" $channel: current channel\n" -" $server: current server\n" +" $var: where \"var\" is a local variable of buffer (see /buffer " +"localvar)\n" +" examples: $nick, $channel, $server, $plugin, $name\n" "\n" "To remove an alias, use command /unalias.\n" "\n" @@ -4046,9 +4046,9 @@ msgstr "" " $n-m: paramètres de 'n' à 'm'\n" " $*: tous les paramètres\n" " $~: le dernier paramètre\n" -" $nick: pseudo courant\n" -" $channel: canal courant\n" -" $server: serveur courant\n" +" $var: où \"var\" est une variable locale du tampon (voir /buffer " +"localvar)\n" +" exemples: $nick, $channel, $server, $plugin, $name\n" "\n" "Pour supprimer un alias, utilisez la commande /unalias.\n" "\n" diff --git a/po/hu.po b/po/hu.po index d9d8b2619..424492f1b 100644 --- a/po/hu.po +++ b/po/hu.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.1-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-02-26 21:38+0100\n" +"POT-Creation-Date: 2013-03-10 08:23+0100\n" "PO-Revision-Date: 2013-02-23 11:11+0100\n" "Last-Translator: Andras Voroskoi \n" "Language-Team: weechat-dev \n" @@ -3336,9 +3336,9 @@ msgid "" " $n-m: arguments from 'n' to 'm'\n" " $*: all arguments\n" " $~: last argument\n" -" $nick: current nick\n" -" $channel: current channel\n" -" $server: current server\n" +" $var: where \"var\" is a local variable of buffer (see /buffer " +"localvar)\n" +" examples: $nick, $channel, $server, $plugin, $name\n" "\n" "To remove an alias, use command /unalias.\n" "\n" diff --git a/po/it.po b/po/it.po index 7f48ef131..d153a7bdf 100644 --- a/po/it.po +++ b/po/it.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.1-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-02-26 21:38+0100\n" +"POT-Creation-Date: 2013-03-10 08:23+0100\n" "PO-Revision-Date: 2013-02-23 11:11+0100\n" "Last-Translator: Marco Paolone \n" "Language-Team: weechat-dev \n" @@ -3855,7 +3855,7 @@ msgstr "crea un alias per un comando" msgid "[-completion ] [ [;...]]" msgstr "[-completion ] [ [;...]]" -#, c-format +#, fuzzy, c-format msgid "" "completion: completion for alias (optional, by default completion is done " "with target command)\n" @@ -3874,9 +3874,9 @@ msgid "" " $n-m: arguments from 'n' to 'm'\n" " $*: all arguments\n" " $~: last argument\n" -" $nick: current nick\n" -" $channel: current channel\n" -" $server: current server\n" +" $var: where \"var\" is a local variable of buffer (see /buffer " +"localvar)\n" +" examples: $nick, $channel, $server, $plugin, $name\n" "\n" "To remove an alias, use command /unalias.\n" "\n" diff --git a/po/ja.po b/po/ja.po index 7b81073a5..467d0d410 100644 --- a/po/ja.po +++ b/po/ja.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.1-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-02-26 21:38+0100\n" +"POT-Creation-Date: 2013-03-10 08:23+0100\n" "PO-Revision-Date: 2013-02-23 11:11+0100\n" "Last-Translator: AYANOKOUZI, Ryuunosuke \n" "Language-Team: Japanese \n" @@ -3840,7 +3840,7 @@ msgstr "コマンドの別名を作成" msgid "[-completion ] [ [;...]]" msgstr "[-completion ] [ [;...]]" -#, c-format +#, fuzzy, c-format msgid "" "completion: completion for alias (optional, by default completion is done " "with target command)\n" @@ -3859,9 +3859,9 @@ msgid "" " $n-m: arguments from 'n' to 'm'\n" " $*: all arguments\n" " $~: last argument\n" -" $nick: current nick\n" -" $channel: current channel\n" -" $server: current server\n" +" $var: where \"var\" is a local variable of buffer (see /buffer " +"localvar)\n" +" examples: $nick, $channel, $server, $plugin, $name\n" "\n" "To remove an alias, use command /unalias.\n" "\n" diff --git a/po/pl.po b/po/pl.po index 7a75ec04a..0a739e1f5 100644 --- a/po/pl.po +++ b/po/pl.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.1-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-02-26 21:38+0100\n" +"POT-Creation-Date: 2013-03-10 08:23+0100\n" "PO-Revision-Date: 2013-02-23 11:11+0100\n" "Last-Translator: Krzysztof Korościk \n" "Language-Team: weechat-dev \n" @@ -3930,7 +3930,7 @@ msgstr "tworzy alias do komendy" msgid "[-completion ] [ [;...]]" msgstr "[-completion ] [ [;...]]" -#, c-format +#, fuzzy, c-format msgid "" "completion: completion for alias (optional, by default completion is done " "with target command)\n" @@ -3949,9 +3949,9 @@ msgid "" " $n-m: arguments from 'n' to 'm'\n" " $*: all arguments\n" " $~: last argument\n" -" $nick: current nick\n" -" $channel: current channel\n" -" $server: current server\n" +" $var: where \"var\" is a local variable of buffer (see /buffer " +"localvar)\n" +" examples: $nick, $channel, $server, $plugin, $name\n" "\n" "To remove an alias, use command /unalias.\n" "\n" diff --git a/po/pt_BR.po b/po/pt_BR.po index 38f528ecb..ad5958d2c 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.1-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-02-26 21:38+0100\n" +"POT-Creation-Date: 2013-03-10 08:23+0100\n" "PO-Revision-Date: 2013-02-23 11:12+0100\n" "Last-Translator: Sergio Durigan Junior \n" "Language-Team: weechat-dev \n" @@ -3770,9 +3770,9 @@ msgid "" " $n-m: arguments from 'n' to 'm'\n" " $*: all arguments\n" " $~: last argument\n" -" $nick: current nick\n" -" $channel: current channel\n" -" $server: current server\n" +" $var: where \"var\" is a local variable of buffer (see /buffer " +"localvar)\n" +" examples: $nick, $channel, $server, $plugin, $name\n" "\n" "To remove an alias, use command /unalias.\n" "\n" diff --git a/po/ru.po b/po/ru.po index 242842de9..09aa1776c 100644 --- a/po/ru.po +++ b/po/ru.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.1-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-02-26 21:38+0100\n" +"POT-Creation-Date: 2013-03-10 08:23+0100\n" "PO-Revision-Date: 2013-02-23 11:12+0100\n" "Last-Translator: Aleksey V Zapparov AKA ixti \n" "Language-Team: weechat-dev \n" @@ -3368,9 +3368,9 @@ msgid "" " $n-m: arguments from 'n' to 'm'\n" " $*: all arguments\n" " $~: last argument\n" -" $nick: current nick\n" -" $channel: current channel\n" -" $server: current server\n" +" $var: where \"var\" is a local variable of buffer (see /buffer " +"localvar)\n" +" examples: $nick, $channel, $server, $plugin, $name\n" "\n" "To remove an alias, use command /unalias.\n" "\n" diff --git a/po/weechat.pot b/po/weechat.pot index 332ff7417..7713280e6 100644 --- a/po/weechat.pot +++ b/po/weechat.pot @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.1-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-02-26 21:38+0100\n" +"POT-Creation-Date: 2013-03-10 08:23+0100\n" "PO-Revision-Date: 2013-02-14 18:20+0100\n" "Last-Translator: FULL NAME \n" "Language-Team: weechat-dev \n" @@ -2974,9 +2974,9 @@ msgid "" " $n-m: arguments from 'n' to 'm'\n" " $*: all arguments\n" " $~: last argument\n" -" $nick: current nick\n" -" $channel: current channel\n" -" $server: current server\n" +" $var: where \"var\" is a local variable of buffer (see /buffer " +"localvar)\n" +" examples: $nick, $channel, $server, $plugin, $name\n" "\n" "To remove an alias, use command /unalias.\n" "\n" diff --git a/src/plugins/alias/alias.c b/src/plugins/alias/alias.c index 11066b1b9..3030a191e 100644 --- a/src/plugins/alias/alias.c +++ b/src/plugins/alias/alias.c @@ -1010,9 +1010,10 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[]) " $n-m: arguments from 'n' to 'm'\n" " $*: all arguments\n" " $~: last argument\n" - " $nick: current nick\n" - " $channel: current channel\n" - " $server: current server\n\n" + " $var: where \"var\" is a local variable of " + "buffer (see /buffer localvar)\n" + " examples: $nick, $channel, $server, " + "$plugin, $name\n\n" "To remove an alias, use command /unalias.\n\n" "Examples:\n" " alias /split to split window horizontally:\n"