diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-08-28 14:07:22 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-08-28 14:07:22 +0000 |
commit | b40fabc15853ef0591991e1a55d282ad0eb95e2b (patch) | |
tree | a003aaffd4378b58985b45258f2dec251c688a0a /src | |
parent | 7205bf032ff098c058ca8aa8af80818d0cd039e8 (diff) |
Oops: initialise fake client after UID setup, so it gets a UID. This may be unnecessary, but I'd rather not explode things anyway.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7947 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/inspircd.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index f39ba03bc..962f84501 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -425,10 +425,6 @@ InspIRCd::InspIRCd(int argc, char** argv) Exit(EXIT_STATUS_LOG); } - /* set up fake client */ - this->FakeClient = new userrec(this); - this->FakeClient->SetFd(FD_MAGIC_NUMBER); - this->stats = new serverstats(); this->Timers = new TimerManager(this); this->Parser = new CommandParser(this); @@ -467,6 +463,10 @@ InspIRCd::InspIRCd(int argc, char** argv) for(i = 3; i < UUID_LENGTH - 1; i++) current_uid[i] = 'A'; + /* set up fake client */ + this->FakeClient = new userrec(this); + this->FakeClient->SetFd(FD_MAGIC_NUMBER); + if (!do_root) this->CheckRoot(); else |