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