1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-03 16:23:14 +02:00

Fix bug with order of hooks: for equal priority, hook is added at the end of the list

This commit is contained in:
Sebastien Helleu
2010-08-12 10:59:21 +02:00
parent 6317dba790
commit c9f94e6f0a
+1 -1
View File
@@ -137,7 +137,7 @@ hook_find_pos (struct t_hook *hook)
for (ptr_hook = weechat_hooks[hook->type]; ptr_hook;
ptr_hook = ptr_hook->next_hook)
{
if (!ptr_hook->deleted && (hook->priority >= ptr_hook->priority))
if (!ptr_hook->deleted && (hook->priority > ptr_hook->priority))
return ptr_hook;
}
}