]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/dnsqueue.cpp
Removed some debug notices that were mistakenly in the DEFAULT loglevel
[user/henk/code/inspircd.git] / src / dnsqueue.cpp
index cd6f696d684775084df023723b2fd0111615278b..36128f985eb6349c24fb1e8536183c9e98acd5b7 100644 (file)
@@ -131,12 +131,13 @@ public:
                                                        {
                                                                strlcpy(usr->host,hostname.c_str(),MAXBUF);
                                                                strlcpy(usr->dhost,hostname.c_str(),MAXBUF);
-                                                               address_hash::iterator address = addrcache.find(usr->ip4);
+                                                               address_cache::iterator address = addrcache.find(usr->ip4);
                                                                if (address == addrcache.end())
                                                                {
                                                                        log(DEBUG,"Caching hostname %s -> %s",(char*)inet_ntoa(usr->ip4),hostname.c_str());
                                                                        addrcache[usr->ip4] = new std::string(hostname);
                                                                }
+                                                               WriteServ(usr->fd,"NOTICE Auth :*** Found your hostname");
                                                        }
                                                        usr->dns_done = true;
                                                        return true;
@@ -176,6 +177,7 @@ public:
                                        {
                                                if ((usr->registered > 3) || (hostname == ""))
                                                {
+                                                       WriteServ(usr->fd,"NOTICE Auth :*** Could not resolve your hostname -- Using your IP address instead");
                                                        usr->dns_done = true;
                                                        return true;
                                                }
@@ -210,7 +212,7 @@ bool lookup_dns(std::string nick)
        if (u)
        {
                /* Check the cache */
-               address_hash::iterator address = addrcache.find(u->ip4);
+               address_cache::iterator address = addrcache.find(u->ip4);
                if (address != addrcache.end())
                {
                        /* Theyre in the cache, dont waste a lookup */