summaryrefslogtreecommitdiff
path: root/src/configreader.cpp
diff options
context:
space:
mode:
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 e0e249963..0dd5745d1 100644
--- a/src/configreader.cpp
+++ b/src/configreader.cpp
@@ -1279,7 +1279,7 @@ bool ServerConfig::ReadFile(file_cache &F, const char* fname)
if((pos = confpath.find("/inspircd.conf")) != std::string::npos)
{
/* Leaves us with just the path */
- std::string newfile = confpath.substr(0, pos) + std::string("/") + newfile;
+ std::string newfile = confpath.substr(0, pos) + std::string("/") + fname;
file = fopen(newfile.c_str(), "r");
}