summaryrefslogtreecommitdiff
path: root/src/cmd_nick.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-01 21:35:07 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-01 21:35:07 +0000
commita5c9214743e76bd8bee1cb5f4d0d6dc3d1171c58 (patch)
tree2a520b22f9a7423924b4ad776b747fd9ba198ae9 /src/cmd_nick.cpp
parentcf2836550f864e162923b8db82d1758b7fb77175 (diff)
Removed threaded dns (it might make a comeback some day, but as it stands its incompatible with the new OO resolver)
Migrated to new OO resolver, removed as much firedns craq as is safe to do so, operates over one file descriptor now and keyed against request id. The only way to use the system is via class Resolver (so i'll need to migrate the rest of the ircd to use it) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4622 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_nick.cpp')
-rw-r--r--src/cmd_nick.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/cmd_nick.cpp b/src/cmd_nick.cpp
index ab286bee4..ddcb04940 100644
--- a/src/cmd_nick.cpp
+++ b/src/cmd_nick.cpp
@@ -149,20 +149,9 @@ void cmd_nick::Handle (const char** parameters, int pcnt, userrec *user)
}
else
{
-#ifdef THREADED_DNS
- // initialize their dns lookup thread
- pthread_attr_t attribs;
- pthread_attr_init(&attribs);
- pthread_attr_setdetachstate(&attribs, PTHREAD_CREATE_DETACHED);
- if (pthread_create(&user->dnsthread, &attribs, dns_task, (void *)user) != 0)
- {
- log(DEBUG,"Failed to create DNS lookup thread for user %s: %s",user->nick, strerror(errno));
- }
-#else
user->dns_done = (!lookup_dns(user->nick));
if (user->dns_done)
log(DEBUG,"Aborting dns lookup of %s because dns server experienced a failure.",user->nick);
-#endif
}
}
if (user->registered == REG_NICKUSER)