summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2009-02-14 21:47:40 +0000
committerpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2009-02-14 21:47:40 +0000
commit168f99fc6cb8e1b1d969ff6cab810bddb103ceec (patch)
treec76dacdaba95c2316ba0e955725f6c7d5856c5d0
parent7d9cc14d3e91896b38f0228fb63ad02f5c2b61da (diff)
Make glob patterns in module load work correctly. Fixes bug #724 reported by SnoFox.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11107 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules.cpp b/src/modules.cpp
index 0f7992a38..7effa28f2 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -387,7 +387,7 @@ bool ModuleManager::Load(const char* filename)
* to load (but wont abort when it encounters a bad one) and when 1 or
* more modules were actually loaded.
*/
- return (n_match > 0);
+ return (n_match > 0 ? false : true);
}
char modfile[MAXBUF];