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:
parent
8abed91ce1
commit
f598ba3857
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
sendto_realops_snomask(SNO_GENERAL, L_ALL, "Cannot locate module %s", path);
|
||||||
|
|
||||||
|
if (server_state_foreground)
|
||||||
|
ierror("cannot locate module %s", path);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue