summaryrefslogtreecommitdiff
path: root/src/common/command.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2007-05-09 13:12:12 +0000
committerSebastien Helleu <flashcode@flashtux.org>2007-05-09 13:12:12 +0000
commit7290f0f1abbbb50e83ea0ab0e050839aebccb8eb (patch)
tree00ac3c529560448be65118936602f42ef83b3f26 /src/common/command.c
parent0093bf08497b22a23778822111c4ef86c744fa81 (diff)
downloadweechat-7290f0f1abbbb50e83ea0ab0e050839aebccb8eb.zip
Fixed bug with $nick/$channel/$server variables in commands
Diffstat (limited to 'src/common/command.c')
-rw-r--r--src/common/command.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/command.c b/src/common/command.c
index 954567699..311ac3868 100644
--- a/src/common/command.c
+++ b/src/common/command.c
@@ -379,7 +379,7 @@ exec_weechat_command (t_irc_server *server, t_irc_channel *channel, char *string
rc = -1;
else
{
- vars_replaced = alias_replace_vars (ptr_args);
+ vars_replaced = alias_replace_vars (server, channel, ptr_args);
rc = plugin_cmd_handler_exec ((server) ? server->name : "", command + 1,
(vars_replaced) ? vars_replaced : ptr_args);
if (vars_replaced)
@@ -429,7 +429,7 @@ exec_weechat_command (t_irc_server *server, t_irc_channel *channel, char *string
ptr_next_cmd = ptr_cmd;
ptr_next_cmd++;
- vars_replaced = alias_replace_vars (*ptr_cmd);
+ vars_replaced = alias_replace_vars (server, channel, *ptr_cmd);
new_ptr_cmd = (vars_replaced) ? vars_replaced : *ptr_cmd;
args_replaced = alias_replace_args (new_ptr_cmd, ptr_args);
if (args_replaced)