Actually use modules' declared hook priorities

This commit is contained in:
Doug Freed 2020-07-01 19:43:48 +00:00
parent e2ceb48c3e
commit eed4099e07

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);
}
}