summaryrefslogtreecommitdiff
path: root/src/userprocess.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-21 20:09:52 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-21 20:09:52 +0000
commitaf739bfa5fbb8070dd3b0d21bdda493cb3052588 (patch)
treea3e92b9c395c558c15a5b9b745d06f2673397626 /src/userprocess.cpp
parentf561b32be27117fa16f7123adfd4e767e9e17561 (diff)
Move DNS timeouts into the UserResolver class, where they should have been (but seems to have been overlooked due to the relics of 1.0). This simplifies some stuff :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8278 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/userprocess.cpp')
-rw-r--r--src/userprocess.cpp20
1 files changed, 2 insertions, 18 deletions
diff --git a/src/userprocess.cpp b/src/userprocess.cpp
index 407aca5b3..c4ce93d6a 100644
--- a/src/userprocess.cpp
+++ b/src/userprocess.cpp
@@ -188,29 +188,13 @@ void InspIRCd::DoBackgroundUserStuff()
/*
* `ready` means that the user has provided NICK/USER(/PASS), and all modules agree
- * that the user is okay to proceed. The one thing we are then waiting for is DNS, which we do here...
+ * that the user is okay to proceed. The one thing we are then waiting for now is DNS...
*/
bool ready = ((curr->registered == REG_NICKUSER) && AllModulesReportReady(curr));
if (ready)
{
- if (!curr->dns_done)
- {
- /*
- * DNS isn't done yet?
- * Cool. Check for timeout.
- */
- if (TIME > curr->signon)
- {
- /* FZZZZZZZZT, timeout! */
- curr->WriteServ("NOTICE Auth :*** Could not resolve your hostname: Request timed out; using your IP address (%s) instead.", curr->GetIPString());
- curr->dns_done = true;
- this->stats->statsDnsBad++;
- curr->FullConnect();
- continue;
- }
- }
- else
+ if (curr->dns_done)
{
/* DNS passed, connect the user */
curr->FullConnect();