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:
+1
-1
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user