}
sendto_realops_snomask(SNO_GENERAL, L_ALL, "Cannot locate module %s", path);
+
+ if (server_state_foreground)
+ ierror("cannot locate module %s", path);
+
return false;
}
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);
}
}