From 749e447fab1d61079f58d21a159bc7937d5a024a Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 14 Oct 2007 22:19:25 +0000 Subject: Fix to stable, too git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@8199 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/configreader.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/configreader.cpp') diff --git a/src/configreader.cpp b/src/configreader.cpp index 343b6cb2b..84b5087d5 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -230,6 +230,11 @@ bool ValidateDnsServer(ServerConfig* conf, const char* tag, const char* value, V */ if (nameserver.find(',') != std::string::npos) nameserver = nameserver.substr(0, nameserver.find(',')); + /* Out of the akwardness that spawned it, vista must be different and seperates + * using spaces rather than commas. Go figure. + */ + if (nameserver.find(' ') != std::string::npos) + nameserver = nameserver.substr(0, nameserver.find(' ')); data.Set(nameserver.c_str()); conf->GetInstance()->Log(DEFAULT," set to '%s' as first active resolver in registry.", nameserver.c_str()); #else -- cgit v1.3.1-10-gc9f91