From 78dc9813021c9caf05fc47c08fc0827b4e6c8465 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 10 Aug 2006 18:58:21 +0000 Subject: Move AllModulesReportReady into a private method of class InspIRCd git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4851 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/helperfuncs.cpp | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'src/helperfuncs.cpp') diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp index 71a8d24a0..2c045c3ce 100644 --- a/src/helperfuncs.cpp +++ b/src/helperfuncs.cpp @@ -468,27 +468,6 @@ void ShowRULES(userrec *user) user->WriteServ("NOTICE %s :End of %s rules.",user->nick,ServerInstance->Config->ServerName); } -// this returns 1 when all modules are satisfied that the user should be allowed onto the irc server -// (until this returns true, a user will block in the waiting state, waiting to connect up to the -// registration timeout maximum seconds) -bool AllModulesReportReady(userrec* user) -{ - if (!ServerInstance->Config->global_implementation[I_OnCheckReady]) - return true; - - for (int i = 0; i <= MODCOUNT; i++) - { - if (ServerInstance->Config->implement_lists[i][I_OnCheckReady]) - { - int res = modules[i]->OnCheckReady(user); - if (!res) - return false; - } - } - - return true; -} - bool IsValidChannelName(const char *chname) { char *c; -- cgit v1.2.3