From f11a2d8a061eabf836bdbb6184ffb0cd1e41391a Mon Sep 17 00:00:00 2001 From: om Date: Tue, 4 Apr 2006 19:06:43 +0000 Subject: 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 --- src/inspircd_io.cpp | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) (limited to 'src/inspircd_io.cpp') 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," '%s'",x); - - return true; -} - -bool ValidateServerDesc(const char* tag, const char* value, void* data) -{ - char* x = (char*)data; - - log(DEFAULT," '%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}, -- cgit v1.2.3