diff options
| author | 2008-01-13 03:37:25 +0000 | |
|---|---|---|
| committer | 2008-01-13 03:37:25 +0000 | |
| commit | 2192a9f58aae466a42d60279fb34ee3c5d2950a1 (patch) | |
| tree | 7c4d2c1047154f7cab1744af9564570fc7045104 /src/inspircd.cpp | |
| parent | Add a channel manager class while I'm at it. (diff) | |
| download | inspircd++-2192a9f58aae466a42d60279fb34ee3c5d2950a1.tar.gz inspircd++-2192a9f58aae466a42d60279fb34ee3c5d2950a1.tar.bz2 inspircd++-2192a9f58aae466a42d60279fb34ee3c5d2950a1.zip | |
First UserManager overhaul: Move clone counts out of InspIRCd & User.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8705 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
| -rw-r--r-- | src/inspircd.cpp | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 6a32e2fc1..e52aa8fc2 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -325,6 +325,7 @@ InspIRCd::InspIRCd(int argc, char** argv) this->Timers = new TimerManager(this); this->Parser = new CommandParser(this); this->XLines = new XLineManager(this); + this->Users = new UserManager(this); this->Config->argv = argv; this->Config->argc = argc; @@ -748,24 +749,6 @@ int InspIRCd::SetTimeDelta(int delta) return old; } -void InspIRCd::AddLocalClone(User* user) -{ - clonemap::iterator x = local_clones.find(user->GetIPString()); - if (x != local_clones.end()) - x->second++; - else - local_clones[user->GetIPString()] = 1; -} - -void InspIRCd::AddGlobalClone(User* user) -{ - clonemap::iterator y = global_clones.find(user->GetIPString()); - if (y != global_clones.end()) - y->second++; - else - global_clones[user->GetIPString()] = 1; -} - int InspIRCd::GetTimeDelta() { return time_delta; |
