summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-26 23:47:52 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-26 23:47:52 +0000
commita997f6184178ab6ca94b26f81d14a11902fa0eef (patch)
tree95a514c62566e3c416e854661c5ff7c3fd4ce617 /src/inspircd.cpp
parent107595610061e05871094ef6161a287c1dd53737 (diff)
Initial UUID generation code. Generates a TS6 compatible UUID.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7846 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 5c1835b03..e7d43edff 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -529,6 +529,21 @@ InspIRCd::InspIRCd(int argc, char** argv)
FreeConsole();
}
#endif
+
+
+ /*
+ * Initialise UID. XXX, we need to read SID from config, and use it instead of 000.
+ * For an explanation as to exactly how this works, and why it works this way, see GetUID().
+ * -- w00t
+ */
+ int i;
+
+ for(i = 0; i < 3; i++)
+ current_uid[i] = '0';
+
+ for(i = 3; i < UUID_LENGTH - 1; i++)
+ current_uid[i] = 'A';
+
printf("\nInspIRCd is now running!\n");
Log(DEFAULT,"Startup complete.");