diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-12-18 22:20:43 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-12-18 22:20:43 +0000 |
commit | 59a78436cc67193f67303e7692f177496800057c (patch) | |
tree | 1285ecc6ed26e8b5f9e7287a247cf325a915f73c /src/inspircd.cpp | |
parent | 267634cc1a5700787b53d0f8421aed63d08f7773 (diff) |
Fix a windows compile screwup, courtesy of me.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10899 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r-- | src/inspircd.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 527eb95b0..229d228ca 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -523,7 +523,10 @@ InspIRCd::InspIRCd(int argc, char** argv) { #ifdef WIN32 /* Windows can (and defaults to) hide file extensions, so let's play a bit nice for windows users. */ - if (ServerConfig::FileExists(this->ConfigFileName + ".txt")) + std::string txtconf = this->ConfigFilename; + txtconf.append(".txt"); + + if (ServerConfig::FileExists(txtconf.c_str())) { strlcat(this->ConfigFileName, ".txt", MAXBUF); } |