summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/helperfuncs.cpp21
-rw-r--r--src/inspircd.cpp23
2 files changed, 23 insertions, 21 deletions
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;
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 6dad70a51..758dd4757 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -1024,3 +1024,26 @@ int main(int argc, char** argv)
}
return 0;
}
+
+/* this returns true 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 InspIRCd::AllModulesReportReady(userrec* user)
+{
+ if (!Config->global_implementation[I_OnCheckReady])
+ return true;
+
+ for (int i = 0; i <= MODCOUNT; i++)
+ {
+ if (Config->implement_lists[i][I_OnCheckReady])
+ {
+ int res = modules[i]->OnCheckReady(user);
+ if (!res)
+ return false;
+ }
+ }
+ return true;
+}
+
+