From f598ba3857cd0d0d1ee3c8497dab1cbec7610a87 Mon Sep 17 00:00:00 2001 From: Aaron Jones Date: Sat, 4 Jul 2020 02:13:13 +0000 Subject: [PATCH] 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] --- ircd/modules.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ircd/modules.c b/ircd/modules.c index 4fe68e31..54acf80f 100644 --- a/ircd/modules.c +++ b/ircd/modules.c @@ -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; }