diff options
| author | 2007-08-28 13:20:11 +0000 | |
|---|---|---|
| committer | 2007-08-28 13:20:11 +0000 | |
| commit | 5ee7322040d501fe55853453caa230f4550313c3 (patch) | |
| tree | 6dd434c71f58dd03b2b912fa733aada4fb760f8d /src/inspircd.cpp | |
| parent | Handle nick change collision through the same rules nick introduction collisi... (diff) | |
| download | inspircd++-5ee7322040d501fe55853453caa230f4550313c3.tar.gz inspircd++-5ee7322040d501fe55853453caa230f4550313c3.tar.bz2 inspircd++-5ee7322040d501fe55853453caa230f4550313c3.zip | |
Add a global fake client to class InspIRCd used instead of instantiating a fake client every time a mode needs to be forced through, etc
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7938 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
| -rw-r--r-- | src/inspircd.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index bc968e87e..f39ba03bc 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -425,6 +425,10 @@ 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); |
