keep in sync with OGN upstream (SVN-321)
[ircu2.10.12-pk.git] / ircd / s_auth.c
index de5d64586de95ae303fb2cb799ac140b1bc6a4ca..71c86385db89e66b589a99c4abae9ecc37da5a65 100644 (file)
@@ -1328,12 +1328,6 @@ void start_auth(struct Client* client)
   /* Set unregistered numnick. */
   auth_set_numnick(auth);
 
-  /* Try to start DNS lookup. */
-  start_dns_query(auth);
-
-  /* Try to start ident lookup. */
-  start_auth_query(auth);
-
   /* Set required client inputs for users. */
   if (IsUserPort(client)) {
     cli_user(client) = make_user(client);
@@ -1345,6 +1339,12 @@ void start_auth(struct Client* client)
     if(start_iauth_query(auth)) return;
   }
 
+  /* Try to start DNS lookup. */
+  start_dns_query(auth);
+
+  /* Try to start ident lookup. */
+  start_auth_query(auth);
+
   /* Add client to GlobalClientList. */
   add_client_to_list(client);