Merge pull request #344 from dwfreed/use-module-hook-priorities

Actually use modules' declared hook priorities
This commit is contained in:
Aaron Jones 2020-07-02 12:41:18 +00:00 committed by GitHub
commit 8abed91ce1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -642,7 +642,7 @@ load_a_module(const char *path, bool warn, int origin, bool core)
int priority = m->priority;
if (priority == 0)
priority = HOOK_NORMAL;
add_hook(m->hapi_name, m->fn);
add_hook_prio(m->hapi_name, m->fn, priority);
}
}