]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/server.cpp
Update documentation and remove unused classes/functions
[user/henk/code/inspircd.git] / src / server.cpp
index 08534897688e79666f31b2f231a234887180d900..8b2c9a67247874d779a4e3db38a71cf97f601cfe 100644 (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;