From ef8b0808954066cfe37f8c51330d76db31577b86 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 21 Apr 2007 19:25:04 +0000 Subject: Ensure it cant happen the other way around, either git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6822 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/userprocess.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/userprocess.cpp b/src/userprocess.cpp index 7cdb85cd2..a72d738c3 100644 --- a/src/userprocess.cpp +++ b/src/userprocess.cpp @@ -266,8 +266,11 @@ void InspIRCd::DoBackgroundUserStuff(time_t TIME) bool ready = AllModulesReportReady(curr); if ((TIME > curr->signon) && (curr->registered == REG_NICKUSER) && (ready)) { - curr->WriteServ("NOTICE Auth :*** Could not resolve your hostname: Request timed out; using your IP address (%s) instead.", curr->GetIPString()); - curr->dns_done = true; + if (!curr->dns_done) + { + 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; -- cgit v1.2.3