diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-04-02 11:48:54 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-04-02 11:48:54 +0000 |
commit | 519d8e5dfe379840ae5da2ac43231ec4364d7b18 (patch) | |
tree | 5e443dece008ad59034ce3b7d53aca72065905f8 /src/inspircd.cpp | |
parent | 4f66a9a4c40ccab57b39eb4dd16c3f02438e3b4c (diff) |
Better generation. This is still fucked up, but less spectacularly and in a much less obvious way.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9260 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r-- | src/inspircd.cpp | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 40e1d8426..1d6986f57 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -509,8 +509,6 @@ InspIRCd::InspIRCd(int argc, char** argv) Config->sid[2] = (char)(sid % 10 + 48); } - this->InitialiseUID(); - /* set up fake client again this time with the correct uid */ this->FakeClient = new User(this, "#INVALID"); this->FakeClient->SetFd(FD_MAGIC_NUMBER); @@ -519,7 +517,6 @@ InspIRCd::InspIRCd(int argc, char** argv) this->XLines->CheckELines(); this->XLines->ApplyLines(); - CheckDie(); int bounditems = BindPorts(true, found_ports, pl); @@ -590,28 +587,6 @@ InspIRCd::InspIRCd(int argc, char** argv) this->WritePID(Config->PID); } -/* moved to a function, as UID generation can call this also */ -void InspIRCd::InitialiseUID() -{ - int i = 3; - -printf("FUCKING UID IS %s\n", current_uid); - - current_uid[0] = Config->sid[0]; - current_uid[1] = Config->sid[1]; - current_uid[2] = Config->sid[2]; - - /* Initialise UID */ - for(i = 3; i < UUID_LENGTH - 1; i++) - current_uid[i] = 'A'; - -printf("FUCKING UID IS %s %d\n", current_uid, strlen(current_uid)); - - current_uid[UUID_LENGTH] = '\0'; - -printf("FUCKING UID IS %s %d\n", current_uid, strlen(current_uid)); -} - int InspIRCd::Run() { /* See if we're supposed to be running the test suite rather than entering the mainloop */ |