summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2012-11-27 12:32:00 +0100
committerSebastien Helleu <flashcode@flashtux.org>2012-11-27 12:32:00 +0100
commit8df76563fde957bd6efcbe284b1dd496cc21f3be (patch)
treea9a8dca51aa0a030721f0286e847c58c1fafc725
parent1585593bda17b46ee063283e5f576b1ca41edfc7 (diff)
downloadweechat-8df76563fde957bd6efcbe284b1dd496cc21f3be.zip
alias: fix default value of alias options (in "cmd" and "completion" sections): defaults to initial command, instead of empty string
-rw-r--r--src/plugins/alias/alias-config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/alias/alias-config.c b/src/plugins/alias/alias-config.c
index b150095d9..630981abc 100644
--- a/src/plugins/alias/alias-config.c
+++ b/src/plugins/alias/alias-config.c
@@ -214,7 +214,7 @@ alias_config_cmd_new_option (const char *name, const char *command)
{
weechat_config_new_option (alias_config_file, alias_config_section_cmd,
name, "string", NULL,
- NULL, 0, 0, "", command, 0,
+ NULL, 0, 0, NULL, command, 0,
NULL, NULL,
&alias_config_cmd_change_cb, NULL,
&alias_config_cmd_delete_cb, NULL);
@@ -273,7 +273,7 @@ alias_config_completion_new_option (const char *name, const char *completion)
weechat_config_new_option (alias_config_file,
alias_config_section_completion,
name, "string", NULL,
- NULL, 0, 0, "", completion, 0,
+ NULL, 0, 0, NULL, completion, 0,
NULL, NULL,
&alias_config_completion_change_cb, NULL,
&alias_config_completion_delete_cb, NULL);