diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-12 17:30:03 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-12 17:30:03 +0000 |
commit | 1424e8559a704c35cd28c3a7cb2b607d66b25f00 (patch) | |
tree | 89bb1a8e386415835afa8d3171a7f9daafe988c5 /src | |
parent | 41f47a3543ae885d32695284383b4f524f5d3e6f (diff) |
Got the bool back to front!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2349 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/inspircd.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index a305f9b0b..5a0d5b388 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -2450,7 +2450,7 @@ bool DoBackgroundUserStuff(time_t TIME) if (count2->second) curr = count2->second; if ((long)curr == -1) - return true; + return false; if ((curr) && (curr->fd != 0)) { @@ -2463,7 +2463,7 @@ bool DoBackgroundUserStuff(time_t TIME) { log(DEBUG,"InspIRCd: write error: %s",curr->GetWriteError().c_str()); kill_link(curr,curr->GetWriteError().c_str()); - return false; + return true; } // registration timeout -- didnt send USER/NICK/HOST in the time specified in // their connection class. @@ -2471,7 +2471,7 @@ bool DoBackgroundUserStuff(time_t TIME) { log(DEBUG,"InspIRCd: registration timeout: %s",curr->nick); kill_link(curr,"Registration timeout"); - return false; + return true; } if ((TIME > curr->signon) && (curr->registered == 3) && (AllModulesReportReady(curr))) { @@ -2480,14 +2480,14 @@ bool DoBackgroundUserStuff(time_t TIME) statsDnsBad++; FullConnectUser(curr); if (fd_ref_table[currfd] != curr) // something changed, bail pronto - return false; + return true; } if ((curr->dns_done) && (curr->registered == 3) && (AllModulesReportReady(curr))) { log(DEBUG,"dns done, registered=3, and modules ready, OK"); FullConnectUser(curr); if (fd_ref_table[currfd] != curr) // something changed, bail pronto - return false; + return true; } if ((TIME > curr->nping) && (isnick(curr->nick)) && (curr->registered == 7)) { @@ -2495,7 +2495,7 @@ bool DoBackgroundUserStuff(time_t TIME) { log(DEBUG,"InspIRCd: ping timeout: %s",curr->nick); kill_link(curr,"Ping timeout"); - return false; + return true; } Write(curr->fd,"PING :%s",ServerName); log(DEBUG,"InspIRCd: pinging: %s",curr->nick); @@ -2505,7 +2505,7 @@ bool DoBackgroundUserStuff(time_t TIME) } } } - return true; + return false; } void OpenLog(char** argv, int argc) |