summaryrefslogtreecommitdiff
path: root/src/modmanager_dynamic.cpp
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-02-02 23:24:43 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-02-02 23:24:43 +0000
commitf02b271d9a85a736af7c49869ced767fef1113d6 (patch)
tree3e490ddb83f9913e81aed8cb4b07d3630ac4e4f0 /src/modmanager_dynamic.cpp
parent05c75aba6b4bf77a8731cd017149b8a40c9182b9 (diff)
Don't try to load modules with filenames starting with a .
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12358 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modmanager_dynamic.cpp')
-rw-r--r--src/modmanager_dynamic.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modmanager_dynamic.cpp b/src/modmanager_dynamic.cpp
index 0c63eefcd..d30f9f595 100644
--- a/src/modmanager_dynamic.cpp
+++ b/src/modmanager_dynamic.cpp
@@ -44,6 +44,8 @@ bool ModuleManager::Load(const char* filename)
dirent* entry = NULL;
while (0 != (entry = readdir(library)))
{
+ if (entry->d_name[0] == '.')
+ continue;
if (InspIRCd::Match(entry->d_name, filename, ascii_case_insensitive_map))
{
if (!this->Load(entry->d_name))