summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);
}