From c3913b1f2fc192184baf5dbdbf12278b10dd1345 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 20 May 2007 12:38:23 +0000 Subject: Windows path seperator is \, this was assuming /. Fixed. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7062 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/configreader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/configreader.cpp') diff --git a/src/configreader.cpp b/src/configreader.cpp index 392c7eb29..4d4dccb08 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -1606,7 +1606,7 @@ std::string ServerConfig::GetFullProgDir(char** argv, int argc) // we just want the dir while (*work) { - if (work[p] == '/') + if ((work[p] == '/') || (work[p] == '\\')) { work[p] = '\0'; break; -- cgit v1.2.3