From 89a8e22b6698c3f4ee1d32e0e864c293cd9335d0 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Fri, 19 Apr 2013 17:06:35 +0200 Subject: Fix uuids getting truncated in the nick hash in UserManager::AddUser() if nickmax is < 9 --- src/usermanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/usermanager.cpp b/src/usermanager.cpp index 124c4d140..2f2eeb6dd 100644 --- a/src/usermanager.cpp +++ b/src/usermanager.cpp @@ -63,7 +63,7 @@ void UserManager::AddUser(int socket, ListenSocket* via, irc::sockets::sockaddrs this->unregistered_count++; /* The users default nick is their UUID */ - New->nick.assign(New->uuid, 0, ServerInstance->Config->Limits.NickMax); + New->nick = New->uuid; (*(this->clientlist))[New->nick] = New; New->registered = REG_NONE; -- cgit v1.2.3