extern ServerConfig* Config;
extern InspIRCd* ServerInstance;
-address_cache addrcache;
-
class Lookup;
Lookup* dnslist[MAX_DESCRIPTORS];
{
return false;
}
- strlcpy(u,nick.c_str(),NICKMAX);
+ strlcpy(u,nick.c_str(),NICKMAX-1);
/* ASSOCIATE WITH DNS LOOKUP LIST */
if (resolver1.GetFD() != -1)
}
};
-bool lookup_dns(std::string nick)
+bool lookup_dns(const std::string &nick)
{
/* First attempt to find the nickname */
userrec* u = Find(nick);