summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2015-08-08 10:27:26 +0200
committerSébastien Helleu <flashcode@flashtux.org>2015-08-08 10:27:26 +0200
commit534227a667de5ff9fc01e9ebc5a6f3185d97917c (patch)
tree15669f51ff697fd0a8d4747ab72a1afcf0eaa53f
parent0f3abd820a2e715c6ed224d4569c64b99fe9fb0b (diff)
parent54998439057cd6330713f2020417a3198adb9b55 (diff)
downloadweechat-534227a667de5ff9fc01e9ebc5a6f3185d97917c.zip
Merge pull request #476 from sim642/alias-example
core: update examples of alias add commands
-rw-r--r--doc/en/weechat_dev.en.asciidoc2
-rw-r--r--doc/fr/weechat_dev.fr.asciidoc2
-rw-r--r--doc/ja/weechat_dev.ja.asciidoc2
-rw-r--r--src/core/wee-command.c2
-rw-r--r--src/plugins/alias/alias.c2
5 files changed, 5 insertions, 5 deletions
diff --git a/doc/en/weechat_dev.en.asciidoc b/doc/en/weechat_dev.en.asciidoc
index 46058fd13..3a00d8777 100644
--- a/doc/en/weechat_dev.en.asciidoc
+++ b/doc/en/weechat_dev.en.asciidoc
@@ -1053,7 +1053,7 @@ Then you can load this script in your WeeChat, and setup path to your '/doc' dir
Then create this alias to build files:
----
-/alias doc /perl unload; /python unload; /ruby unload; /lua unload; /tcl unload; /guile unload; /javascript unload; /python load docgen.py; /wait 1ms /docgen
+/alias add doc /perl unload; /python unload; /ruby unload; /lua unload; /tcl unload; /guile unload; /javascript unload; /python load docgen.py; /wait 1ms /docgen
----
And use command `/doc` to build all files, for all languages.
diff --git a/doc/fr/weechat_dev.fr.asciidoc b/doc/fr/weechat_dev.fr.asciidoc
index abc246afa..dec45da78 100644
--- a/doc/fr/weechat_dev.fr.asciidoc
+++ b/doc/fr/weechat_dev.fr.asciidoc
@@ -1073,7 +1073,7 @@ vers votre répertoire '/doc' :
Créez alors cet alias pour construire les fichiers :
----
-/alias doc /perl unload; /python unload; /ruby unload; /lua unload; /tcl unload; /guile unload; /javascript unload; /python load docgen.py; /wait 1ms /docgen
+/alias add doc /perl unload; /python unload; /ruby unload; /lua unload; /tcl unload; /guile unload; /javascript unload; /python load docgen.py; /wait 1ms /docgen
----
Et utilisez la commande `/doc` pour construire tous les fichiers, pour toutes
diff --git a/doc/ja/weechat_dev.ja.asciidoc b/doc/ja/weechat_dev.ja.asciidoc
index 3d665772f..f1f2da8b5 100644
--- a/doc/ja/weechat_dev.ja.asciidoc
+++ b/doc/ja/weechat_dev.ja.asciidoc
@@ -1050,7 +1050,7 @@ $ msgcheck.py xx.po
ファイルを生成するエイリアスを作ってください:
----
-/alias doc /perl unload; /python unload; /ruby unload; /lua unload; /tcl unload; /guile unload; /javascript unload; /python load docgen.py; /wait 1ms /docgen
+/alias add doc /perl unload; /python unload; /ruby unload; /lua unload; /tcl unload; /guile unload; /javascript unload; /python load docgen.py; /wait 1ms /docgen
----
コマンド `/doc` を使って全ての (全てのプログラミング言語について) 自動生成するファイルを作成してください。
diff --git a/src/core/wee-command.c b/src/core/wee-command.c
index a23837849..87bf62fc7 100644
--- a/src/core/wee-command.c
+++ b/src/core/wee-command.c
@@ -7815,7 +7815,7 @@ command_init ()
" /set irc.server.oftc.command \"/msg nickserv identify "
"${sec.data.oftc}\"\n"
" alias to ghost the nick \"mynick\":\n"
- " /alias ghost /eval /msg -server freenode nickserv ghost mynick "
+ " /alias add ghost /eval /msg -server freenode nickserv ghost mynick "
"${sec.data.freenode}"),
"passphrase -delete"
" || decrypt -discard"
diff --git a/src/plugins/alias/alias.c b/src/plugins/alias/alias.c
index 48631604b..d4e3126ff 100644
--- a/src/plugins/alias/alias.c
+++ b/src/plugins/alias/alias.c
@@ -526,7 +526,7 @@ alias_hook_command (struct t_alias *alias)
/*
* if alias has no custom completion, then default is to complete with
* completion template of target command, for example if alias is
- * "/alias test /buffer", then str_completion will be "%%buffer"
+ * "/alias add test /buffer", then str_completion will be "%%buffer"
*/
str_completion = NULL;
if (!alias->completion)