From 14004479dc1d471c4388f0ab7f86f869ba7f098a Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 3 May 2006 09:28:01 +0000 Subject: Checks for negative fd's when adding them to the socketengine so we can generate less debug output git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3929 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/users.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index 41f1f097c..42816932f 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -730,7 +730,10 @@ void AddClient(int socket, int port, bool iscached, in_addr ip4) } } - ServerInstance->SE->AddFd(socket,true,X_ESTAB_CLIENT); + if (socket > -1) + { + ServerInstance->SE->AddFd(socket,true,X_ESTAB_CLIENT); + } WriteServ(clientlist[tempnick]->fd,"NOTICE Auth :*** Looking up your hostname..."); } -- cgit v1.3.1-10-gc9f91