From 59a78436cc67193f67303e7692f177496800057c Mon Sep 17 00:00:00 2001 From: w00t Date: Thu, 18 Dec 2008 22:20:43 +0000 Subject: Fix a windows compile screwup, courtesy of me. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10899 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); } -- cgit v1.2.3