diff options
author | aquanight <aquanight@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-05-23 16:39:52 +0000 |
---|---|---|
committer | aquanight <aquanight@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-05-23 16:39:52 +0000 |
commit | 87dd84a97265843cfe19f20c207c1c72f38a4f2d (patch) | |
tree | d561c84e617d790cd8c1fe9bc62f34b90eae2202 /src/usermanager.cpp | |
parent | df2c1f5f76e572bca012e79e5f73b38452cd3020 (diff) |
Fix user->host not being assigned correctly for new connections
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9792 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/usermanager.cpp')
-rw-r--r-- | src/usermanager.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/usermanager.cpp b/src/usermanager.cpp index f18ea91d4..7f07bc69f 100644 --- a/src/usermanager.cpp +++ b/src/usermanager.cpp @@ -63,8 +63,6 @@ void UserManager::AddUser(InspIRCd* Instance, int socket, int port, bool iscache Instance->Logs->Log("USERS", DEBUG,"New user fd: %d", socket); - int j = 0; - this->unregistered_count++; (*(this->clientlist))[New->uuid] = New; @@ -80,9 +78,7 @@ void UserManager::AddUser(InspIRCd* Instance, int socket, int port, bool iscache 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); |