diff options
Diffstat (limited to 'src/inspircd.cpp')
-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() |