ircd/modules.c: complain to foreground if unable to locate module

Without this a conftest user has no idea whether the module path
is correct or not.

[ci skip]
This commit is contained in:
Aaron Jones 2020-07-04 02:13:13 +00:00
parent 8abed91ce1
commit f598ba3857
No known key found for this signature in database
GPG key ID: 50C25BA590AE7AB4

View 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;
}