From 68eb489f36c4e7a025b40ca89eab7ccd2612b981 Mon Sep 17 00:00:00 2001 From: stskeeps Date: Sun, 27 May 2001 10:02:31 +0000 Subject: [PATCH] +- Made validate_configuration check for !conf_listen --- Changes | 1 + src/s_conf.c | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index 9661a7cc6..de5b0887a 100644 --- a/Changes +++ b/Changes @@ -524,4 +524,5 @@ seen. gmtime warning still there - Made the Status Dialog update its values every 5 seconds - Made slot arrangement be different. - Merged McSkaf's hostname patch, debug patch, s_misc patch +- Made validate_configuration check for !conf_listen \ No newline at end of file diff --git a/src/s_conf.c b/src/s_conf.c index 7333548b7..ad197632b 100644 --- a/src/s_conf.c +++ b/src/s_conf.c @@ -2792,6 +2792,10 @@ void validate_configuration(void) Error("set::cloak-keys are too easy to guess. Please select three other more absurd and crazy numbers - will increase security a lot"); } #endif + if (!conf_listen) + { + Error("No listeners defined"); + } /* Now for the real config */ if (conf_me) { @@ -2840,7 +2844,7 @@ void validate_configuration(void) oper_ptr->name); } } - + for (listen_ptr = conf_listen; listen_ptr; listen_ptr = (ConfigItem_listen *)listen_ptr->next) { if (!listen_ptr->ip)