1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-26 21:06:38 +02:00

core: add debug message in hook_process when core debug >= 1

This commit is contained in:
Sébastien Helleu
2014-11-15 10:53:57 +01:00
parent 66cacdc7dc
commit c58a195590
+11
View File
@@ -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;