summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2008-04-17 17:59:27 +0200
committerSebastien Helleu <flashcode@flashtux.org>2008-04-17 17:59:27 +0200
commite349ae491a9ce9bebd38b14e41c95aabe694a7ed (patch)
treeef15cbc2c558b52bc71da95ac92a23f819270b83 /src/core
parent62bcf75851fbf10e4b8307ce96592ca8392f78dc (diff)
downloadweechat-e349ae491a9ce9bebd38b14e41c95aabe694a7ed.zip
Added infolist "window", scroll in buffers with free content, fixed config hooks (use of string_match)
Diffstat (limited to 'src/core')
-rw-r--r--src/core/wee-hook.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/wee-hook.c b/src/core/wee-hook.c
index ec0227911..a9f43f990 100644
--- a/src/core/wee-hook.c
+++ b/src/core/wee-hook.c
@@ -990,8 +990,7 @@ hook_config_exec (char *option, char *value)
if (!ptr_hook->deleted
&& !ptr_hook->running
&& (!HOOK_CONFIG(ptr_hook, option)
- || (string_strcasecmp (HOOK_CONFIG(ptr_hook, option),
- option) == 0)))
+ || (string_match (option, HOOK_CONFIG(ptr_hook, option), 0))))
{
ptr_hook->running = 1;
(void) (HOOK_CONFIG(ptr_hook, callback))