summaryrefslogtreecommitdiff
path: root/src/modules.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-02-10 00:11:02 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-02-10 00:11:02 +0000
commitab9d28a14772e60109aa0bd834d7dcbbe7b9302d (patch)
tree8a23ccf0e41b4bb10e06b5eccb7561fc7bd5b0fa /src/modules.cpp
parent5f56457576dbaedd8b8c228b245059bee3d8fcfc (diff)
When opening a file to read, check its not a directory with stat()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6557 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules.cpp')
-rw-r--r--src/modules.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/modules.cpp b/src/modules.cpp
index 2818de639..83b88b2fa 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -718,12 +718,7 @@ bool ConfigReader::Verify()
FileReader::FileReader(InspIRCd* Instance, const std::string &filename) : ServerInstance(Instance)
{
- file_cache c;
- if (!ServerInstance->Config->ReadFile(c,filename.c_str()))
- {
- this->fc = c;
- this->CalcSize();
- }
+ LoadFile(filename);
}
FileReader::FileReader(InspIRCd* Instance) : ServerInstance(Instance)