summaryrefslogtreecommitdiff
path: root/src/usermanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/usermanager.cpp')
-rw-r--r--src/usermanager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/usermanager.cpp b/src/usermanager.cpp
index 7f07bc69f..a171c32d2 100644
--- a/src/usermanager.cpp
+++ b/src/usermanager.cpp
@@ -78,7 +78,8 @@ 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. */
- New->dhost.assign(New->host.assign(New->GetIPString(), 64));
+ New->dhost.assign(New->GetIPString(), 0, 64);
+ New->host.assign(New->GetIPString(), 0, 64);
Instance->Users->AddLocalClone(New);
Instance->Users->AddGlobalClone(New);