From 9f33bf7fc83cffccae96eb622bf39e8f4838b809 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 13 May 2008 17:16:26 +0000 Subject: Check for windows drive letters on the start of paths and treat them the same as paths that start with /, this makes insp more friendly for windows filesystems git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9724 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/configreader.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/configreader.h b/include/configreader.h index aea355583..86191fa6d 100644 --- a/include/configreader.h +++ b/include/configreader.h @@ -681,6 +681,10 @@ class CoreExport ServerConfig : public Extensible */ bool ReadFile(file_cache &F, const char* fname); + /* Returns true if the given string starts with a windows drive letter + */ + bool StartsWithWindowsDriveLetter(const std::string &path); + /** Report a configuration error given in errormessage. * @param bail If this is set to true, the error is sent to the console, and the program exits * @param user If this is set to a non-null value, and bail is false, the errors are spooled to -- cgit v1.2.3