summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-05-23 17:15:48 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-05-23 17:15:48 +0000
commit322cd2e5924a9c820f14894d42bb1c8ee7ac4d81 (patch)
tree160b102a901ff0968d836849d0ea94285e108965
parent87dd84a97265843cfe19f20c207c1c72f38a4f2d (diff)
Fix uuid generation to not generate ten character uuids, thanks nenolod
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9793 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/users.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/users.cpp b/src/users.cpp
index c4c9fe9d1..4ffdeb678 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -210,9 +210,9 @@ User::User(InspIRCd* Instance, const std::string &uid) : ServerInstance(Instance
memset(snomasks,0,sizeof(snomasks));
if (uid.empty())
- uuid.assign(Instance->GetUID(), 0, UUID_LENGTH);
+ uuid.assign(Instance->GetUID(), 0, UUID_LENGTH - 1);
else
- uuid.assign(uid, 0, UUID_LENGTH);
+ uuid.assign(uid, 0, UUID_LENGTH - 1);
ServerInstance->Logs->Log("USERS", DEBUG,"New UUID for user: %s (%s)", uuid.c_str(), uid.empty() ? "allocated new" : "used remote");