aboutsummaryrefslogtreecommitdiff
path: root/src/configreader.cpp
diff options
context:
space:
mode:
authorGravatar brain2007-11-11 19:21:19 +0000
committerGravatar brain2007-11-11 19:21:19 +0000
commit621f93b72ffdae4e211949c9fad778327c2a31fa (patch)
tree437fa52b2bb4445f6e1a401af1501b76a0448f70 /src/configreader.cpp
parentWe need to initialize the user twice, and we need to initialize the uid AFTER... (diff)
More stuff
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8574 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r--src/configreader.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp
index 13ef5ddad..ec5f1fe54 100644
--- a/src/configreader.cpp
+++ b/src/configreader.cpp
@@ -1296,10 +1296,16 @@ void ServerConfig::StartDownloads()
ServerInstance->Log(DEBUG,"Module-handled schema for %s", x->first.c_str());
/* For now, error it */
- FileErrors++;
- TotalDownloaded++;
- delete x->second;
- x->second = NULL;
+ int MOD_RESULT = 0;
+ FOREACH_RESULT(I_OnDownloadFile, OnDownloadFile(file, reinterpret_cast<std::istringstream*>(x->second)));
+ if (MOD_RESULT == 0)
+ {
+ /* No module claimed this file */
+ TotalDownloaded++;
+ FileErrors++;
+ delete x->second;
+ x->second = NULL;
+ }
}
}
}