mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 11:09:04 -04:00
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:
parent
34fbe51fa4
commit
fb58653c41
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user