summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authordane dane@31f1291d-b8d6-0310-a050-a5561fc1590b <dane dane@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-06-16 17:51:14 +0000
committerdane dane@31f1291d-b8d6-0310-a050-a5561fc1590b <dane dane@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-06-16 17:51:14 +0000
commita1c569ad4b5806eb86239576107d60522cadc82e (patch)
tree9ab7cb6abaef415973d5ceabd2f6a6d9ef659df1 /config.c
parent631b4f1cb77512182d1a4b9901d34063cacb9f2a (diff)
BUILD : 1.7.3 (197) BUGS : none NOTES : More verbose error messages for services.conf checking.
git-svn-id: svn://svn.anope.org/anope/trunk@197 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@139 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'config.c')
-rw-r--r--config.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/config.c b/config.c
index c52179d9c..b74406c4b 100644
--- a/config.c
+++ b/config.c
@@ -1029,6 +1029,16 @@ int read_config(int reload)
NSDefFlags |= NI_MEMO_RECEIVE;
}
+ if (!ServicesRoot) {
+ error(0,
+ "You must define the 'ServicesRoot' configuration directive");
+ error(0,
+ "in your services.conf file. This is a required setting that");
+ error(0,
+ "defines the main Administrative nick(s) Anope will obey.");
+ retval = 0;
+ }
+
CHECK(NSGuestNickPrefix); /* Add safety check */
if (NSGuestNickPrefix && (strlen(NSGuestNickPrefix) > 21)) {
error(0, "Value of NSGuestNickPrefix must be between 1 and 21");
@@ -1292,6 +1302,11 @@ int read_config(int reload)
}
}
+ if (!retval) {
+ printf
+ ("\n*** Support resources: Read through the services.conf self-contained \n*** documentation. Read the documentation files found in the 'docs' \n*** folder. Visit our portal located at http://www.anope.org/. Join \n*** our support channel on /server irc.anope.org channel #anope.\n\n");
+ }
+
return retval;
}