Fix GetUID generating 10-character UUIDs

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11932 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
danieldg 2009-10-20 04:40:37 +00:00
parent 34fbe51fa4
commit fb58653c41

View File

@ -111,7 +111,7 @@ void InspIRCd::IncrementUID(int pos)
// At pos 3, if we hit '9', we've run out of available UIDs, and need to reset to AAA..AAA.
if (current_uid[pos] == '9')
{
for (int i = 3; i < UUID_LENGTH; i++)
for (int i = 3; i < (UUID_LENGTH - 1); i++)
{
current_uid[i] = 'A';
pos = UUID_LENGTH - 1;