summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/inspircd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 76cd9a37c..7e6fce2f0 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -767,10 +767,10 @@ bool InspIRCd::AllModulesReportReady(User* user)
size_t ready = 0;
for (EventHandlerIter i = Modules->EventHandlers[I_OnCheckReady].begin(); i != Modules->EventHandlers[I_OnCheckReady].end(); ++i)
{
- if ((*i)->OnCheckReady(user))
+ if (!(*i)->OnCheckReady(user))
ready++;
}
- return (ready != Modules->EventHandlers[I_OnCheckReady].size());
+ return (ready == Modules->EventHandlers[I_OnCheckReady].size());
}
time_t InspIRCd::Time()