diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-03-19 00:19:29 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-03-19 00:19:29 +0000 |
commit | 26057b119fc676f268fa920b6d34ff8371e81183 (patch) | |
tree | 4539f8d6fcb792b4d108022ea576e0464f79472d | |
parent | e1834aa932f9c8cdddcb7b186bf0390e4d9c7d28 (diff) |
Silly silly, AllModulesReportReady returns true when ONE module reports ready. Fixed here :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9128 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/inspircd.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 04a0907a7..be4bc012e 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -764,14 +764,13 @@ int main(int argc, char ** argv) */ bool InspIRCd::AllModulesReportReady(User* user) { + size_t ready = 0; for (EventHandlerIter i = Modules->EventHandlers[I_OnCheckReady].begin(); i != Modules->EventHandlers[I_OnCheckReady].end(); ++i) { - int res = (*i)->OnCheckReady(user); - if (!res) - return false; + if ((*i)->OnCheckReady(user)) + ready++; } - - return true; + return (ready == Modules->EventHandlers[I_OnCheckReady].size()); } time_t InspIRCd::Time() |