summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgeniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2005-10-05 15:22:04 +0000
committergeniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2005-10-05 15:22:04 +0000
commit96c98e6eea470a1c68340af43879c111a0c7c1b6 (patch)
tree258acf365811fb497ef7fa70f7acc4a4eff05711 /src
parent6d2b7007676f0e928af32fc27ffac121c29a7c20 (diff)
BUILD : 1.7.11 (913) BUGS : NOTES : Turned NickLen into RECOMMENDED and BSFantasyCharacter into OPTIONAL
git-svn-id: svn://svn.anope.org/anope/trunk@913 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@659 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r--src/config.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/config.c b/src/config.c
index d9566f073..e08afa682 100644
--- a/src/config.c
+++ b/src/config.c
@@ -950,7 +950,6 @@ int read_config(int reload)
CHECK(RemoteServer);
CHECK(ServerName);
CHECK(ServerDesc);
- CHECK(NickLen);
if (RemoteServer3)
CHECK(RemoteServer2);
@@ -967,8 +966,15 @@ int read_config(int reload)
}
}
- if (NickLen >= NICKMAX)
+ if (NickLen == 0) {
+ alog("You have not defined the NickLen configuration directive. It is strongly");
+ alog("advised that you do configure this correctly in your services.conf");
NickLen = NICKMAX - 1;
+ } else if ((NickLen < 1) || (NickLen >= NICKMAX)) {
+ alog("NickLen has an invalid value; setting to %d",
+ (NICKMAX - 1));
+ NickLen = NICKMAX - 1;
+ }
}
CHECK(IRCDModule);
@@ -1319,7 +1325,6 @@ int read_config(int reload)
CHECK(BSBadWordsMax);
CHECK(BSMinUsers);
CHECK(BSKeepData);
- CHECK(BSFantasyCharacter);
if (s_BotServAlias) {
if (!stricmp(s_BotServ, s_BotServAlias)) {
printf
@@ -1327,6 +1332,8 @@ int read_config(int reload)
retval = 0;
}
}
+ if (!BSFantasyCharacter)
+ BSFantasyCharacter = "!";
if (BSFantasyCharacter && (strlen(BSFantasyCharacter) > 1)) {
printf
("*** BSFantasyCharacter is more than 1 character long. Only the first\n"