summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-12 15:14:20 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-12 15:14:20 +0000
commit4f03923da6de7a586d0f0b76a06cc79be0b9eabe (patch)
treeb55bd2ae0385bb41b0eab7b125ee7db46bb1bb8a
parentaa04777319db31344eb56d691cb38b3666e02b1c (diff)
All this works now (hopefully)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4367 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/dns.cpp4
-rw-r--r--src/modules/m_cgiirc.cpp3
2 files changed, 6 insertions, 1 deletions
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);
}