From 4f03923da6de7a586d0f0b76a06cc79be0b9eabe Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 12 Jul 2006 15:14:20 +0000 Subject: All this works now (hopefully) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4367 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/dns.cpp | 4 ++++ src/modules/m_cgiirc.cpp | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/dns.cpp b/src/dns.cpp index 7ca1db982..df7ee2694 100644 --- a/src/dns.cpp +++ b/src/dns.cpp @@ -593,8 +593,10 @@ char* DNS::dns_getresult_s(const int cfd, char *res) { /* retrieve result of DNS q = 0; while (q == 0 && i < l && o + 256 < 1023) { + log(DEBUG,"DNS: loop 1"); if (h.payload[i] > 63) { + log(DEBUG,"DNS: h.payload[i] > 63"); memcpy(&p,&h.payload[i],2); i = ntohs(p) - 0xC000 - 12; } @@ -606,6 +608,7 @@ char* DNS::dns_getresult_s(const int cfd, char *res) { /* retrieve result of DNS } else { + log(DEBUG,"Loop 2: res='%s'",res); res[o] = '\0'; if (o != 0) res[o++] = '.'; @@ -616,6 +619,7 @@ char* DNS::dns_getresult_s(const int cfd, char *res) { /* retrieve result of DNS } } res[o] = '\0'; + log(DEBUG,"DNS: res='%s'",res); break; case DNS_QRY_A: log(DEBUG,"DNS: got a result of type DNS_QRY_A"); diff --git a/src/modules/m_cgiirc.cpp b/src/modules/m_cgiirc.cpp index 952d5359f..7da83c610 100644 --- a/src/modules/m_cgiirc.cpp +++ b/src/modules/m_cgiirc.cpp @@ -198,7 +198,7 @@ public: virtual void OnUserRegister(userrec* user) { - log(DEBUG, "m_cgiirc.so: User %s registering", user->nick); + log(DEBUG, "m_cgiirc.so: User %s registering, %s %s", user->nick,user->host,inet_ntoa(user->ip4)); for(CGIHostlist::iterator iter = Hosts.begin(); iter != Hosts.end(); iter++) { @@ -310,6 +310,7 @@ public: try { + log(DEBUG,"MAKE RESOLVER: %s %d %s",newip, user->fd, "IDENT"); CGIResolver* r = new CGIResolver(NotifyOpers, newip, false, user, user->fd, "IDENT"); Srv->AddResolver(r); } -- cgit v1.2.3