diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-05-13 17:16:26 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-05-13 17:16:26 +0000 |
commit | 9f33bf7fc83cffccae96eb622bf39e8f4838b809 (patch) | |
tree | 248bbe5351c3d4eaee4f34589fc38a046204d151 /include | |
parent | 25a78272bc44ae466ebb2e60e090e07dc1fe4f88 (diff) |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/configreader.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 |