summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-04-21 19:25:04 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-04-21 19:25:04 +0000
commitef8b0808954066cfe37f8c51330d76db31577b86 (patch)
tree92b23ca6173bb899616a2b15a2f115aef900b529
parent6e98307171ac86933419a0669d02ca44900a2e7a (diff)
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
-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;