X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fserver.cpp;h=2722c6831966840b145ad9f0c59bce05e88c2499;hb=4c83624ed825ca123401a45c8d2844ba6453a85b;hp=ea2ec49284b0d8be96315a87b9754b98898a6e54;hpb=8c3a4a51ff092a0614e6c9a15e4bd53e4877bc48;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/server.cpp b/src/server.cpp index ea2ec4928..2722c6831 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -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 (),