]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/server.cpp
Fixed an issue that could cause empty parameters in module commands to not be sent...
[user/henk/code/inspircd.git] / src / server.cpp
index ea2ec49284b0d8be96315a87b9754b98898a6e54..2722c6831966840b145ad9f0c59bce05e88c2499 100644 (file)
@@ -173,9 +173,11 @@ std::string InspIRCd::GetUID()
 
                        if (current_uid[3] == 'Z')
                        {
-                               /* If we get to here, we need to wrap around to AAAA. */
-                               for(int j = 3; j < UUID_LENGTH - 1; j++)
-                                       current_uid[j] = 'A';
+                               /*
+                                * Ugh. We have run out of room.. roll back around to the
+                                * start of the UUID namespace. -- w00t
+                                */
+                               this->InitialiseUID();
 
                                /*
                                 * and now we need to break the inner for () to continue the while (),