diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-04 12:39:39 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-04 12:39:39 +0000 |
commit | b886782d50405274b9ede463bbd192d4443a897f (patch) | |
tree | 629afeac926668a9f0f6c076a30e612452a93ebc /src/users.cpp | |
parent | f9d905204085d8ba66b9f136979a6be959b63e42 (diff) |
Extra debug
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4699 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
-rw-r--r-- | src/users.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/users.cpp b/src/users.cpp index 74f70b458..dd6a4c785 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -809,7 +809,10 @@ void AddClient(int socket, int port, bool iscached, insp_inaddr ip) _new->registered = REG_NONE; _new->signon = TIME + Config->dns_timeout; _new->lastping = 1; + + log(DEBUG,"Setting socket addresses"); _new->SetSockAddr(AF_FAMILY, ipaddr, port); + log(DEBUG,"Socket addresses set."); // set the registration timeout for this user unsigned long class_regtimeout = 90; @@ -887,6 +890,7 @@ void AddClient(int socket, int port, bool iscached, insp_inaddr ip) ServerInstance->SE->AddFd(socket,true,X_ESTAB_CLIENT); } + log(DEBUG,"Writing to client %d",_new->fd); WriteServ(_new->fd,"NOTICE Auth :*** Looking up your hostname..."); } @@ -1105,6 +1109,7 @@ void userrec::SetSockAddr(int protocol_family, const char* ip, int port) #ifdef SUPPORT_IP6LINKS case AF_INET6: { + log(DEBUG,"Set inet6 protocol address"); sockaddr_in6* sin = (sockaddr_in6*)&this->ip; sin->sin6_family = AF_INET6; sin->sin6_port = port; @@ -1114,6 +1119,7 @@ void userrec::SetSockAddr(int protocol_family, const char* ip, int port) #endif case AF_INET: { + log(DEBUG,"Set inet4 protocol address"); sockaddr_in* sin = (sockaddr_in*)&this->ip; sin->sin_family = AF_INET; sin->sin_port = port; |