aboutsummaryrefslogtreecommitdiffstats
path: root/src/userprocess.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/userprocess.cpp')
-rw-r--r--src/userprocess.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/userprocess.cpp b/src/userprocess.cpp
index df422c721..bc5dac8f6 100644
--- a/src/userprocess.cpp
+++ b/src/userprocess.cpp
@@ -237,8 +237,8 @@ void InspIRCd::DoBackgroundUserStuff(time_t TIME)
* user has signed on with USER/NICK/PASS, and dns has completed, all the modules
* say this user is ok to proceed, fully connect them.
*/
- bool ready = AllModulesReportReady(curr);
- if ((TIME > curr->signon) && (curr->registered == REG_NICKUSER) && (ready))
+ bool ready = curr->registered == REG_NICKUSER && AllModulesReportReady(curr);
+ if ((TIME > curr->signon) && (ready))
{
if (!curr->dns_done)
{