1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

core: add missing hook type "focus" in array "hook_type_string" (fix crash when calling infolist_get with bad hook type)

This commit is contained in:
Sebastien Helleu
2011-10-01 21:19:42 +02:00
parent 01327b1b8f
commit f89cecf71d
+1 -1
View File
@@ -63,7 +63,7 @@
char *hook_type_string[HOOK_NUM_TYPES] =
{ "command", "command_run", "timer", "fd", "process", "connect", "print",
"signal", "hsignal", "config", "completion", "modifier",
"info", "info_hashtable", "infolist", "hdata" };
"info", "info_hashtable", "infolist", "hdata", "focus" };
struct t_hook *weechat_hooks[HOOK_NUM_TYPES]; /* list of hooks */
struct t_hook *last_weechat_hook[HOOK_NUM_TYPES]; /* last hook */
int hook_exec_recursion = 0; /* 1 when a hook is executed */