summaryrefslogtreecommitdiff
path: root/src/configreader.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-20 12:38:23 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-20 12:38:23 +0000
commitc3913b1f2fc192184baf5dbdbf12278b10dd1345 (patch)
tree5f51037622a255c8cb47670555cbe01950609cbc /src/configreader.cpp
parent9caa0763a36cc9cb37599cf00bf233efb05bafbb (diff)
Windows path seperator is \, this was assuming /. Fixed.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7062 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r--src/configreader.cpp2
1 files changed, 1 insertions, 1 deletions
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;