summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2014-11-15 10:53:57 +0100
committerSébastien Helleu <flashcode@flashtux.org>2014-11-15 10:53:57 +0100
commitc58a195590add85caac703955bb79dd48cf6bc91 (patch)
tree9210c5eefb72f32f8846304eef034d41c10fdea2 /src
parent66cacdc7dc0bcc3d745f26bbc0aa05d8a25d6067 (diff)
downloadweechat-c58a195590add85caac703955bb79dd48cf6bc91.zip
core: add debug message in hook_process when core debug >= 1
Diffstat (limited to 'src')
-rw-r--r--src/core/wee-hook.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/wee-hook.c b/src/core/wee-hook.c
index 5e0f0e77a..c8234e83d 100644
--- a/src/core/wee-hook.c
+++ b/src/core/wee-hook.c
@@ -1450,6 +1450,17 @@ hook_process_hashtable (struct t_weechat_plugin *plugin,
hook_add_to_list (new_hook);
+ if (weechat_debug_core >= 1)
+ {
+ gui_chat_printf (NULL,
+ "debug: hook_process: command=\"%s\", "
+ "options=\"%s\", timeout=%d",
+ new_hook_process->command,
+ hashtable_get_string (new_hook_process->options,
+ "keys_values"),
+ new_hook_process->timeout);
+ }
+
hook_process_run (new_hook);
return new_hook;