summaryrefslogtreecommitdiff
path: root/src/inspircd_io.cpp
diff options
context:
space:
mode:
authorom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-04-04 19:06:43 +0000
committerom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-04-04 19:06:43 +0000
commitf11a2d8a061eabf836bdbb6184ffb0cd1e41391a (patch)
treec6c0c5243d89c3fb061320bccfff8021e5e47dea /src/inspircd_io.cpp
parent19cfbc8c3d9ce7939d30aeb4b01b17f360ad2131 (diff)
Remove 'validation' for server description and network name (didn't do anything)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3834 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd_io.cpp')
-rw-r--r--src/inspircd_io.cpp22
1 files changed, 2 insertions, 20 deletions
diff --git a/src/inspircd_io.cpp b/src/inspircd_io.cpp
index eb5229252..bd63d8bf4 100644
--- a/src/inspircd_io.cpp
+++ b/src/inspircd_io.cpp
@@ -267,24 +267,6 @@ bool ValidateServerName(const char* tag, const char* value, void* data)
return true;
}
-bool ValidateNetworkName(const char* tag, const char* value, void* data)
-{
- char* x = (char*)data;
-
- log(DEFAULT,"<server:network> '%s'",x);
-
- return true;
-}
-
-bool ValidateServerDesc(const char* tag, const char* value, void* data)
-{
- char* x = (char*)data;
-
- log(DEFAULT,"<server:description> '%s'",x);
-
- return true;
-}
-
bool ValidateNetBufferSize(const char* tag, const char* value, void* data)
{
if ((!Config->NetBufferSize) || (Config->NetBufferSize > 65535) || (Config->NetBufferSize < 1024))
@@ -543,8 +525,8 @@ void ServerConfig::Read(bool bail, userrec* user)
{"options", "softlimit", &this->SoftLimit, DT_INTEGER, ValidateSoftLimit},
{"options", "somaxconn", &this->MaxConn, DT_INTEGER, ValidateMaxConn},
{"server", "name", &this->ServerName, DT_CHARPTR, ValidateServerName},
- {"server", "description", &this->ServerDesc, DT_CHARPTR, ValidateServerDesc},
- {"server", "network", &this->Network, DT_CHARPTR, ValidateNetworkName},
+ {"server", "description", &this->ServerDesc, DT_CHARPTR, NoValidation},
+ {"server", "network", &this->Network, DT_CHARPTR, NoValidation},
{"admin", "name", &this->AdminName, DT_CHARPTR, NoValidation},
{"admin", "email", &this->AdminEmail, DT_CHARPTR, NoValidation},
{"admin", "nick", &this->AdminNick, DT_CHARPTR, NoValidation},