summaryrefslogtreecommitdiff
path: root/src/usermanager.cpp
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-04-19 17:06:35 +0200
committerattilamolnar <attilamolnar@hush.com>2013-04-19 17:06:35 +0200
commit89a8e22b6698c3f4ee1d32e0e864c293cd9335d0 (patch)
tree5221c6690e03793ae3ac6d451adb4ce59442667e /src/usermanager.cpp
parent9d43a08903592e82655d7afcf978006d64198808 (diff)
Fix uuids getting truncated in the nick hash in UserManager::AddUser() if nickmax is < 9
Diffstat (limited to 'src/usermanager.cpp')
-rw-r--r--src/usermanager.cpp2
1 files changed, 1 insertions, 1 deletions
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;