]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - src/modules.c
Clean up cmode norepeat's metadata when unsetting +K.
[irc/rqf/shadowircd.git] / src / modules.c
index dd977e53c05c1438b031d4cce7ed331ba2f37b49..4547e42dfca95fba830d8c7e29891e7da41a5f3e 100644 (file)
@@ -63,6 +63,7 @@ static const char *core_module_table[] = {
        "m_kick",
        "m_kill",
        "m_message",
+       "m_metadata",
        "m_mode",
        "m_nick",
        "m_part",
@@ -109,8 +110,6 @@ struct Message modrestart_msgtab = {
        {mg_unreg, mg_not_oper, mg_ignore, mg_ignore, mg_ignore, {mo_modrestart, 0}}
 };
 
-extern struct Message error_msgtab;
-
 void
 modules_init(void)
 {
@@ -425,11 +424,11 @@ mo_modreload(struct Client *client_p, struct Client *source_p, int parc, const c
                return 0;
        }
 
-       if((load_one_module(parv[1], check_core) == -1) && check_core)
+       if((load_one_module(m_bn, check_core) == -1) && check_core)
        {
                sendto_realops_snomask(SNO_GENERAL, L_ALL,
-                                    "Error reloading core module: %s: terminating ircd", parv[1]);
-               ilog(L_MAIN, "Error loading core module %s: terminating ircd", parv[1]);
+                                    "Error reloading core module: %s: terminating ircd", m_bn);
+               ilog(L_MAIN, "Error loading core module %s: terminating ircd", m_bn);
                exit(0);
        }