summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/userprocess.cpp7
1 files 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;