mirror of
https://github.com/weechat/weechat.git
synced 2026-07-09 19:23:13 +02:00
Merge pull request #476 from sim642/alias-example
core: update examples of alias add commands
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user