summaryrefslogtreecommitdiff
path: root/src/server.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-31 19:37:22 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-31 19:37:22 +0000
commitb2b7bfd5e94760b3d4ab1832edd4e5a26b8b8fd9 (patch)
treef849a4a04c45959dcb756cf24bbfb1d4a24833d4 /src/server.cpp
parent46a4409b754ffa05dcebfe7381813a51ad479c1f (diff)
This may not compile, I'll test it on my desktop. Waiting 20 minutes for a build is unacceptable.
- Move UUID initialisation to InspIRCd::InitialiseUID() - Call it if we run out of existing UUIDs - Call it on startup Just a small cleanup. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8007 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/server.cpp')
-rw-r--r--src/server.cpp8
1 files changed, 5 insertions, 3 deletions
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 (),