From 7252fc23ec2d2a1e3d3b6c289d82d4aaa9f08b20 Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Sun, 10 Nov 2024 00:03:26 +0000 Subject: Exit with failure upon failing to read any nicks from the configuration file at startup. --- blabouncer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/blabouncer.c b/blabouncer.c index 56c21a0..2640753 100644 --- a/blabouncer.c +++ b/blabouncer.c @@ -1070,6 +1070,7 @@ int main(int argc, char *argv[]) { int ret = getconfarr("nicks", settings.conffile, settings.ircnicks); if (!ret) { printf("main(): error getting any 'nicks' from configuration file.\n"); + exit(1); } else if (ret == -1) { // Error reading an array line from the configuration file // Remove any newlines from the middle of the string so error printing works nicely -- cgit v1.2.3