From 8bfb41c3cd70a2316a6671df21d7160de6683a06 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 14 Oct 2007 22:16:59 +0000 Subject: Just to be fucking akward, windows vista seperates multiple nameservers with spaces whilst other versions of windows use commas. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8198 e03df62e-2008-0410-955e-edbf42e46eb7 --- win/inspircd_win32wrapper.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'win/inspircd_win32wrapper.cpp') diff --git a/win/inspircd_win32wrapper.cpp b/win/inspircd_win32wrapper.cpp index e6f25df18..af50828c4 100644 --- a/win/inspircd_win32wrapper.cpp +++ b/win/inspircd_win32wrapper.cpp @@ -638,6 +638,11 @@ bool ValidateWindowsDnsServer(ServerConfig* conf, const char* tag, const char* v */ if (nameserver.find(',') != std::string::npos) nameserver = nameserver.substr(0, nameserver.find(',')); + /* Just to be FUCKING AKWARD, windows fister... err i mean vista... + * seperates the nameservers with spaces instead. + */ + 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()); } -- cgit v1.2.3