summaryrefslogtreecommitdiff
path: root/src/helperfuncs.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-29 00:19:35 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-29 00:19:35 +0000
commit0bf908e49c957ce35ac194a0c9b739f22d76182e (patch)
tree839be4613f600d34ff5c3285ba3f5840aac24b11 /src/helperfuncs.cpp
parentbbad4e536234949a1ce480e6c6f901c884621c5e (diff)
Optimizing to not use so much cpu with high user loads
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2691 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/helperfuncs.cpp')
-rw-r--r--src/helperfuncs.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp
index 71840a22a..57f81a044 100644
--- a/src/helperfuncs.cpp
+++ b/src/helperfuncs.cpp
@@ -1093,11 +1093,16 @@ void ShowRULES(userrec *user)
// registration timeout maximum seconds)
bool AllModulesReportReady(userrec* user)
{
+ if (!Config->global_implementation[I_OnCheckReady])
+ return true;
for (int i = 0; i <= MODCOUNT; i++)
{
- int res = modules[i]->OnCheckReady(user);
- if (!res)
- return false;
+ if (Config->implement_lists[i][I_OnCheckReady])
+ {
+ int res = modules[i]->OnCheckReady(user);
+ if (!res)
+ return false;
+ }
}
return true;
}