Merge pull request #344 from dwfreed/use-module-hook-priorities
Actually use modules' declared hook priorities
This commit is contained in:
commit
8abed91ce1
1 changed files with 1 additions and 1 deletions
|
@ -642,7 +642,7 @@ load_a_module(const char *path, bool warn, int origin, bool core)
|
||||||
int priority = m->priority;
|
int priority = m->priority;
|
||||||
if (priority == 0)
|
if (priority == 0)
|
||||||
priority = HOOK_NORMAL;
|
priority = HOOK_NORMAL;
|
||||||
add_hook(m->hapi_name, m->fn);
|
add_hook_prio(m->hapi_name, m->fn, priority);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue