]> jfr.im git - solanum.git/blobdiff - ircd/modules.c
Add general::tls_ciphers_oper_only
[solanum.git] / ircd / modules.c
index d2c431a676eeca77784e30c600185e6c77c0d778..54acf80f286fbc9b76ec9ed73b5cfaf7d70b1216 100644 (file)
@@ -297,6 +297,10 @@ load_one_module(const char *path, int origin, bool coremodule)
        }
 
        sendto_realops_snomask(SNO_GENERAL, L_ALL, "Cannot locate module %s", path);
+
+       if (server_state_foreground)
+               ierror("cannot locate module %s", path);
+
        return false;
 }
 
@@ -642,7 +646,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);
                                }
                        }