]> jfr.im git - solanum.git/blobdiff - ircd/modules.c
Add general::hidden_caps
[solanum.git] / ircd / modules.c
index d2c431a676eeca77784e30c600185e6c77c0d778..e4dc728bdb4a000a448f3146ada82169ecaa39da 100644 (file)
@@ -41,7 +41,7 @@
 #include <ltdl.h>
 
 #ifndef LT_MODULE_EXT
-#      error "Charybdis requires loadable module support."
+#      error "Solanum requires loadable module support."
 #endif
 
 rb_dlink_list module_list;
@@ -51,6 +51,7 @@ static const char *core_module_table[] = {
        "m_ban",
        "m_die",
        "m_error",
+       "m_identified",
        "m_join",
        "m_kick",
        "m_kill",
@@ -297,6 +298,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 +647,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);
                                }
                        }