git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9792
e03df62e-2008-0410-955e-
edbf42e46eb7
Instance->Logs->Log("USERS", DEBUG,"New user fd: %d", socket);
Instance->Logs->Log("USERS", DEBUG,"New user fd: %d", socket);
this->unregistered_count++;
(*(this->clientlist))[New->uuid] = New;
this->unregistered_count++;
(*(this->clientlist))[New->uuid] = New;
New->lastping = 1;
/* Smarter than your average bear^H^H^H^Hset of strlcpys. */
New->lastping = 1;
/* Smarter than your average bear^H^H^H^Hset of strlcpys. */
- for (const char* temp = New->GetIPString(); *temp && j < 64; temp++, j++)
- New->dhost[j] = New->host[j] = *temp;
- New->dhost[j] = New->host[j] = 0;
+ New->dhost.assign(New->host.assign(New->GetIPString(), 64));
Instance->Users->AddLocalClone(New);
Instance->Users->AddGlobalClone(New);
Instance->Users->AddLocalClone(New);
Instance->Users->AddGlobalClone(New);