From 0bf908e49c957ce35ac194a0c9b739f22d76182e Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 29 Dec 2005 00:19:35 +0000 Subject: 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 --- src/helperfuncs.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/helperfuncs.cpp') 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; } -- cgit v1.2.3