X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fmain.c;h=1287faf242dcba4c22148ccc945e55931ad570ea;hb=ff689d90ad836cbbb3f1b773618ce249377bc631;hp=fa8aee1f8bb24135776721aba6394c41705627b5;hpb=e192ffc0fed753aa5a5c5081674511f90c5a953b;p=NeonServV5.git diff --git a/src/main.c b/src/main.c index fa8aee1..1287faf 100644 --- a/src/main.c +++ b/src/main.c @@ -216,6 +216,12 @@ int main(int argc, char *argv[]) { exit(0); } check_firstrun(); + char **modulelist = get_all_fieldnames("modules"); + if(!modulelist || !modulelist[0]) { + fprintf(stderr, "no modules loaded... Please update your configuration!\n"); + exit(0); + } + free(modulelist); if (run_as_daemon) { #ifndef WIN32 /* Attempt to fork into the background if daemon mode is on. */