From 77e3fb3c8312031572e6aa6d1962a9bb3faf68b8 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Tue, 22 Aug 2006 10:04:17 +0000 Subject: Added arguments $1,$2,..,$9 and $* for alias (task #5831), added special vars $nick/$channel/$server for server_command, alias and plugin command handlers --- src/common/weeconfig.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/common/weeconfig.c') diff --git a/src/common/weeconfig.c b/src/common/weeconfig.c index 08f4db61c..c04265f33 100644 --- a/src/common/weeconfig.c +++ b/src/common/weeconfig.c @@ -37,6 +37,7 @@ #include "weechat.h" #include "weeconfig.h" +#include "alias.h" #include "command.h" #include "fifo.h" #include "log.h" @@ -1008,7 +1009,8 @@ t_config_option weechat_options_server[] = "", NULL, NULL, &(cfg_server.hostname), NULL }, { "server_command", N_("command(s) to run when connected to server"), N_("command(s) to run when connected to server (many commands should be " - "separated by ';', use '\\;' for a semicolon)"), + "separated by ';', use '\\;' for a semicolon, special variables $nick, " + "$channel and $server are replaced by their value)"), OPTION_TYPE_STRING, 0, 0, 0, "", NULL, NULL, &(cfg_server.command), NULL }, { "server_command_delay", N_("delay (in seconds) after command was executed"), -- cgit v1.2.3