]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/users.cpp
Some AddMode fixes
[user/henk/code/inspircd.git] / src / users.cpp
index c6c8126eefdfc40de90df1d7c1c97800313268e6..fec5694a4dceb80ad83d9e3e21c036dfbbc69ca9 100644 (file)
@@ -11,6 +11,8 @@
  * ---------------------------------------------------
  */
 
+/* $Core: libIRCDusers */
+
 #include "inspircd.h"
 #include <stdarg.h>
 #include "socketengine.h"
@@ -848,6 +850,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()