diff options
Diffstat (limited to 'src/core/hook/wee-hook-line.c')
-rw-r--r-- | src/core/hook/wee-hook-line.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/hook/wee-hook-line.c b/src/core/hook/wee-hook-line.c index 6b3305fc4..1d29be96a 100644 --- a/src/core/hook/wee-hook-line.c +++ b/src/core/hook/wee-hook-line.c @@ -125,6 +125,7 @@ void hook_line_exec (struct t_gui_line *line) { struct t_hook *ptr_hook, *next_hook; + struct t_hook_exec_cb hook_exec_cb; struct t_hashtable *hashtable, *hashtable2; char str_value[128], *str_tags; @@ -182,12 +183,12 @@ hook_line_exec (struct t_gui_line *line) HASHTABLE_SET_STR_NOT_NULL("message", line->data->message); /* run callback */ - ptr_hook->running = 1; + hook_callback_start (ptr_hook, &hook_exec_cb); hashtable2 = (HOOK_LINE(ptr_hook, callback)) (ptr_hook->callback_pointer, ptr_hook->callback_data, hashtable); - ptr_hook->running = 0; + hook_callback_end (ptr_hook, &hook_exec_cb); if (hashtable2) { |