summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-03 01:25:23 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-03 01:25:23 +0000
commit463bb4410aba2541c1289f95336dea938656f8c5 (patch)
treecd2f62a8e101cdf748716345b3e4c675a89e39e6
parentff3d213e5f57fcf45881fde812c04484ee4cd359 (diff)
CheckDie was always still here, we were just forgetting to set the die value's string
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5833 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/configreader.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp
index eba798a56..73a0e25b1 100644
--- a/src/configreader.cpp
+++ b/src/configreader.cpp
@@ -308,17 +308,6 @@ bool ValidateRules(ServerConfig* conf, const char* tag, const char* value, Value
return true;
}
-bool ValidateDie(ServerConfig* conf, const char* tag, const char* value, ValueItem &data)
-{
- if (!*data.GetString())
- {
- conf->GetInstance()->Log(DEFAULT,"Die value is set: \"%s\", terminating.", data.GetString());
- printf("\n\nERROR: %s\n\n", data.GetString());
- exit(ERROR);
- }
- return true;
-}
-
bool ValidateWhoWas(ServerConfig* conf, const char* tag, const char* value, ValueItem &data)
{
conf->WhoWasMaxKeep = conf->GetInstance()->Duration(data.GetString());
@@ -575,7 +564,7 @@ void ServerConfig::Read(bool bail, userrec* user)
{"whowas", "groupsize", new ValueContainerInt (&this->WhoWasGroupSize), DT_INTEGER, NoValidation},
{"whowas", "maxgroups", new ValueContainerInt (&this->WhoWasMaxGroups), DT_INTEGER, NoValidation},
{"whowas", "maxkeep", new ValueContainerChar (maxkeep), DT_CHARPTR, ValidateWhoWas},
- {"die", "value", new ValueContainerChar (this->DieValue), DT_CHARPTR, ValidateDie},
+ {"die", "value", new ValueContainerChar (this->DieValue), DT_CHARPTR, NoValidation},
{NULL}
};