diff options
| author | 2007-04-21 19:25:04 +0000 | |
|---|---|---|
| committer | 2007-04-21 19:25:04 +0000 | |
| commit | ef8b0808954066cfe37f8c51330d76db31577b86 (patch) | |
| tree | 92b23ca6173bb899616a2b15a2f115aef900b529 /src/userprocess.cpp | |
| parent | Fix spurious 'found host' messages after being told it couldnt. (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
Diffstat (limited to 'src/userprocess.cpp')
| -rw-r--r-- | src/userprocess.cpp | 7 |
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; |
