summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-02-02 21:48:09 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-02-02 21:48:09 +0000
commit942d25e282e5c0d3442a154d8db8869944ac58eb (patch)
tree5a9f209497e84ade3aea9e7d8632fc8aab7500d6 /src/inspircd.cpp
parentf0df393c4212104eec5da828f02f28dd2f6a336b (diff)
Fix a null pointer dereference caused by my reordering/moving stuff
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8792 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 7eb52ebc8..b7e8ff5ae 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -308,7 +308,10 @@ InspIRCd::InspIRCd(int argc, char** argv)
delete SEF;
this->s_signal = 0;
-
+
+ // Create base manager classes early, so nothing breaks
+ this->Users = new UserManager(this);
+
this->Users->unregistered_count = 0;
this->Users->clientlist = new user_hash();
@@ -325,7 +328,6 @@ 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;