aboutsummaryrefslogtreecommitdiffstats
path: root/src/configreader.cpp
diff options
context:
space:
mode:
authorGravatar brain2007-10-14 22:19:25 +0000
committerGravatar brain2007-10-14 22:19:25 +0000
commit749e447fab1d61079f58d21a159bc7937d5a024a (patch)
treec563992e7111aefedb37dceb9b42069c4013801d /src/configreader.cpp
parentFixed for 1.1 too (diff)
Fix to stable, too
git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@8199 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r--src/configreader.cpp5
1 files changed, 5 insertions, 0 deletions
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,"<dns:server> set to '%s' as first active resolver in registry.", nameserver.c_str());
#else