aboutsummaryrefslogtreecommitdiffstats
path: root/src/users.cpp
diff options
context:
space:
mode:
authorGravatar brain2006-05-03 09:28:01 +0000
committerGravatar brain2006-05-03 09:28:01 +0000
commit14004479dc1d471c4388f0ab7f86f869ba7f098a (patch)
tree12678fda8217ae43ee5ab9882797588470194597 /src/users.cpp
parentReturn false was missing (diff)
downloadinspircd++-14004479dc1d471c4388f0ab7f86f869ba7f098a.tar.gz
inspircd++-14004479dc1d471c4388f0ab7f86f869ba7f098a.tar.bz2
inspircd++-14004479dc1d471c4388f0ab7f86f869ba7f098a.zip
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
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp5
1 files changed, 4 insertions, 1 deletions
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...");
}