aboutsummaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorGravatar w00t2007-10-21 20:22:21 +0000
committerGravatar w00t2007-10-21 20:22:21 +0000
commit665ae74f2a8be8f9fd6592cd8f1655d3ad65a3dd (patch)
treea08cda75f80b25aad07e3520139979884f166441 /src/users.cpp
parentMove DNS timeouts into the UserResolver class, where they should have been (b... (diff)
Tidy up some DNS stuff more
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8280 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/users.cpp b/src/users.cpp
index c6c8126ee..f86e18257 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -848,6 +848,15 @@ void User::AddClient(InspIRCd* Instance, int socket, int port, bool iscached, in
* BOPM and other stuff requires it.
*/
New->WriteServ("NOTICE Auth :*** Looking up your hostname...");
+
+ if (Instance->Config->NoUserDns)
+ {
+ New->dns_done = true;
+ }
+ else
+ {
+ New->StartDNSLookup();
+ }
}
unsigned long User::GlobalCloneCount()