bool DoLookup(std::string nick)
{
hostname = "";
- userrec* usr = Find(nick.c_str());
+ userrec* usr = Find(nick);
if (usr)
{
resolver1.SetNS(std::string(Config->DNSServer));
{
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)
{
/* First attempt to find the nickname */
- userrec* u = Find(nick.c_str());
+ userrec* u = Find(nick);
if (u)
{
/* Check the cache */