diff options
author | Luke Bratch <luke@bratch.co.uk> | 2024-11-10 00:03:26 +0000 |
---|---|---|
committer | Luke Bratch <luke@bratch.co.uk> | 2024-11-10 00:03:26 +0000 |
commit | 7252fc23ec2d2a1e3d3b6c289d82d4aaa9f08b20 (patch) | |
tree | 0f15d8ed1827e8002c736ba59a3771567dfa3510 /blabouncer.c | |
parent | feeb625db4837f3f91a722cd7866ce7da253d593 (diff) |
Exit with failure upon failing to read any nicks from the configuration file at startup.
Diffstat (limited to 'blabouncer.c')
-rw-r--r-- | blabouncer.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 |