summaryrefslogtreecommitdiff
path: root/src/core/wee-hook.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-10-01 21:19:42 +0200
committerSebastien Helleu <flashcode@flashtux.org>2011-10-01 21:19:42 +0200
commitf89cecf71d09b73eaa4d81dcf3fdbd2dd2234c37 (patch)
tree5131de4df8d68d418adcf2237d848a44442455cf /src/core/wee-hook.c
parent01327b1b8f8448277c93ddfc4d289b45086f92d2 (diff)
downloadweechat-f89cecf71d09b73eaa4d81dcf3fdbd2dd2234c37.zip
core: add missing hook type "focus" in array "hook_type_string" (fix crash when calling infolist_get with bad hook type)
Diffstat (limited to 'src/core/wee-hook.c')
-rw-r--r--src/core/wee-hook.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/wee-hook.c b/src/core/wee-hook.c
index 4414e3a09..1fad570b3 100644
--- a/src/core/wee-hook.c
+++ b/src/core/wee-hook.c
@@ -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 */