From 174169ac35321eedae9df6aabe7833b7df6b0279 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 14 Jul 2006 12:14:42 +0000 Subject: Rollback dns change git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4384 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/users.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index 4918c417b..f455bb825 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -202,9 +202,7 @@ userrec::userrec() invites.clear(); chans.resize(MAXCHANS); memset(modes,0,sizeof(modes)); -#ifndef THREADED_DNS - dns_fd = -1; -#endif + for (unsigned int n = 0; n < MAXCHANS; n++) { ucrec* x = new ucrec(); @@ -221,11 +219,6 @@ userrec::~userrec() ucrec* x = (ucrec*)*n; DELETE(x); } - if (dns_fd > -1) - { - shutdown(dns_fd, 2); - close(dns_fd); - } } /* XXX - minor point, other *Host functions return a char *, this one creates it. Might be nice to be consistant? */ -- cgit v1.3.1-10-gc9f91