From: w00t Date: Tue, 1 Apr 2008 23:39:44 +0000 (+0000) Subject: Only setup fakeclient once. X-Git-Tag: v2.0.23~3575 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=4b2dda4d80ee0855e577cbd6099d9d1bd915e8da;p=user%2Fhenk%2Fcode%2Finspircd.git Only setup fakeclient once. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9253 e03df62e-2008-0410-955e-edbf42e46eb7 --- diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 8d7046ef6..bf103328d 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -447,13 +447,6 @@ InspIRCd::InspIRCd(int argc, char** argv) this->Modes = new ModeParser(this); - /* set up fake client (uid is incorrect at this point, - * until after config is read. we set up the user again - * at that point - */ - this->FakeClient = new User(this); - this->FakeClient->SetFd(FD_MAGIC_NUMBER); - if (!do_root) this->CheckRoot(); else @@ -519,7 +512,6 @@ InspIRCd::InspIRCd(int argc, char** argv) this->InitialiseUID(); /* set up fake client again this time with the correct uid */ - delete FakeClient; this->FakeClient = new User(this); this->FakeClient->SetFd(FD_MAGIC_NUMBER);