diff options
| author | 2013-06-06 03:13:55 +0200 | |
|---|---|---|
| committer | 2013-06-06 03:13:55 +0200 | |
| commit | eeabdde6fbd99bc0ba5739c65421a9c20b503f72 (patch) | |
| tree | 39bd0d947f428fdecf757257625445ea5887d497 /src/usermanager.cpp | |
| parent | Store prefix rank in a ModeHandler field, change ModeHandler::GetPrefixRank()... (diff) | |
| download | inspircd++-eeabdde6fbd99bc0ba5739c65421a9c20b503f72.tar.gz inspircd++-eeabdde6fbd99bc0ba5739c65421a9c20b503f72.tar.bz2 inspircd++-eeabdde6fbd99bc0ba5739c65421a9c20b503f72.zip | |
Move DoBackgroundUserStuff() and AllModulesReportReady() into UserManager
Diffstat (limited to 'src/usermanager.cpp')
| -rw-r--r-- | src/usermanager.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/usermanager.cpp b/src/usermanager.cpp index d6c61d2e3..df1d5f9f1 100644 --- a/src/usermanager.cpp +++ b/src/usermanager.cpp @@ -362,3 +362,14 @@ void UserManager::GarbageCollect() (**i).RemoveExpiredInvites(); } } + +/* 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 UserManager::AllModulesReportReady(LocalUser* user) +{ + ModResult res; + FIRST_MOD_RESULT(OnCheckReady, res, (user)); + return (res == MOD_RES_PASSTHRU); +} |
