summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2014-02-06 21:03:42 +0100
committerSebastien Helleu <flashcode@flashtux.org>2014-02-09 12:55:41 +0100
commit53921acc381e51a1ff8dcfe27543e5a24f9d74bd (patch)
treefa621510d164e72441ff9f9ce38e0f66d8e9b140
parent09c75714f9a70b304de4d19c23410a25ac4f71fd (diff)
downloadweechat-53921acc381e51a1ff8dcfe27543e5a24f9d74bd.zip
trigger: fix evaluated command in callback
-rw-r--r--src/plugins/trigger/trigger-callback.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/trigger/trigger-callback.c b/src/plugins/trigger/trigger-callback.c
index 7bc519ded..2aac6c92b 100644
--- a/src/plugins/trigger/trigger-callback.c
+++ b/src/plugins/trigger/trigger-callback.c
@@ -157,9 +157,9 @@ trigger_callback_run_command (struct t_trigger *trigger,
{
weechat_printf_tags (trigger_buffer, "no_trigger",
"\t running command \"%s\"",
- trigger->commands[i]);
+ command_eval);
}
- weechat_command (buffer, trigger->commands[i]);
+ weechat_command (buffer, command_eval);
trigger->hook_count_cmd++;
}
free (command_eval);