summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2008-11-14 15:50:07 +0100
committerSebastien Helleu <flashcode@flashtux.org>2008-11-14 15:50:07 +0100
commit21110ac1283c10a104b24358516c6fd98f6ce03a (patch)
tree6e378c275c130120d436d0a381add7faacf842f9
parent48ac3c4f989eb5e25105896649e90dd01dcfb9ca (diff)
downloadweechat-21110ac1283c10a104b24358516c6fd98f6ce03a.zip
Fix bug with argument replacement in alias ($1,..,$9 and $*) when no argument is given to alias by user
-rw-r--r--src/plugins/alias/alias.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/alias/alias.c b/src/plugins/alias/alias.c
index e70d15b81..f40f9e3e7 100644
--- a/src/plugins/alias/alias.c
+++ b/src/plugins/alias/alias.c
@@ -269,9 +269,9 @@ alias_cb (void *data, struct t_gui_buffer *buffer, int argc, char **argv,
{
ptr_next_cmd = ptr_cmd;
ptr_next_cmd++;
-
- args_replaced = (argc > 1) ?
- alias_replace_args (*ptr_cmd, argv_eol[1]) : NULL;
+
+ args_replaced = alias_replace_args (*ptr_cmd,
+ (argc > 1) ? argv_eol[1] : "");
if (args_replaced)
{
some_args_replaced = 1;