From 463bb4410aba2541c1289f95336dea938656f8c5 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 3 Dec 2006 01:25:23 +0000 Subject: 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 --- src/configreader.cpp | 13 +------------ 1 file changed, 1 insertion(+), 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} }; -- cgit v1.2.3