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
This commit is contained in:
brain 2008-03-19 00:19:29 +00:00
parent e1834aa932
commit 26057b119f

View File

@ -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()