summaryrefslogtreecommitdiff
path: root/src/userprocess.cpp
diff options
context:
space:
mode:
authorspecial <special@e03df62e-2008-0410-955e-edbf42e46eb7>2007-04-02 04:46:01 +0000
committerspecial <special@e03df62e-2008-0410-955e-edbf42e46eb7>2007-04-02 04:46:01 +0000
commitef960ee420460e437b49e8085c3f1158c60752b9 (patch)
tree76768f393b2041bdc2e2bdde04ffc2b4418a2cbc /src/userprocess.cpp
parent1369c479510140a4d716742262d4455d1abc3ca5 (diff)
Fixed a DNS timeout race condition that could result in a NOTICE AUTH message being sent after connecting (thanks NBKWH5I)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6730 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/userprocess.cpp')
-rw-r--r--src/userprocess.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/userprocess.cpp b/src/userprocess.cpp
index 1d2187165..7cdb85cd2 100644
--- a/src/userprocess.cpp
+++ b/src/userprocess.cpp
@@ -266,6 +266,7 @@ 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;
this->stats->statsDnsBad++;
curr->FullConnect();