diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-11 11:06:40 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-11 11:06:40 +0000 |
commit | 312d49abb008dccf9871b663decaa1bacf18c20a (patch) | |
tree | 5160e2aef34cfdfffa5d22eefc02c6921fc30ad3 /src/inspircd.cpp | |
parent | fe66a14a06c5542a8b127e2f1e0a51e4dc2946dc (diff) |
Move all of the xline stuff into class XLineManager, make an instance of it in class InspIRCd and use it
(eliminates another extern)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4878 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r-- | src/inspircd.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 1e2f16e07..22d2e51a9 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -273,9 +273,10 @@ InspIRCd::InspIRCd(int argc, char** argv) : ModCount(-1) this->Timers = new TimerManager(); Config->ClearStack(); Config->Read(true, NULL); - CheckRoot(); + this->CheckRoot(); this->ModeGrok = new ModeParser(this); this->AddServerName(Config->ServerName); + this->XLines = new XLineManager(this); CheckDie(); InitializeDisabledCommands(Config->DisabledCommands, this); stats->BoundPortCount = BindPorts(true); @@ -674,7 +675,7 @@ void InspIRCd::DoOneIteration(bool process_module_sockets) */ if (((TIME % 5) == 0) && (!expire_run)) { - expire_lines(); + XLines->expire_lines(); if (process_module_sockets) { FOREACH_MOD(I_OnBackgroundTimer,OnBackgroundTimer(TIME)); |