[core] invert logic for mod_indexfile load warning
This commit is contained in:
parent
e92919788f
commit
06ebbc3ed4
|
@ -1182,7 +1182,7 @@ static int server_main (server * const srv, int argc, char **argv) {
|
|||
for (buffer *pname = NULL; i < srv->plugins.used; ++i) {
|
||||
plugin *p = ((plugin **)srv->plugins.ptr)[i];
|
||||
if (buffer_is_equal_string(p->name, CONST_STR_LEN("indexfile"))) {
|
||||
if (!pname) {
|
||||
if (pname) {
|
||||
log_error_write(srv, __FILE__, __LINE__, "SB",
|
||||
"Warning: mod_indexfile should be listed in server.modules prior to mod_", pname);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue