]> jfr.im git - irc/freenode/solanum.git/commitdiff
ircd/modules.c: complain to foreground if unable to locate module
authorAaron Jones <redacted>
Sat, 4 Jul 2020 02:13:13 +0000 (02:13 +0000)
committerAaron Jones <redacted>
Sat, 4 Jul 2020 02:14:33 +0000 (02:14 +0000)
Without this a conftest user has no idea whether the module path
is correct or not.

[ci skip]

ircd/modules.c

index 4fe68e310399b3ab993c935c8320cb020b1df993..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;
 }