first working version of oidentd support - broken, WIP
[quassel.git] / src / core / core.cpp
index 2a2e5eb..3b1a9e5 100644 (file)
@@ -169,8 +169,6 @@ Core::Core()
 }
 
 void Core::init() {
-  _oidentdConfigGenerator = new OidentdConfigGenerator();
-
   CoreSettings cs;
   _configured = initStorage(cs.storageSettings().toMap());
 
@@ -203,6 +201,8 @@ void Core::init() {
   connect(&_server, SIGNAL(newConnection()), this, SLOT(incomingConnection()));
   connect(&_v6server, SIGNAL(newConnection()), this, SLOT(incomingConnection()));
   if(!startListening()) exit(1); // TODO make this less brutal
+
+  _oidentdConfigGenerator = new OidentdConfigGenerator(this);
 }
 
 Core::~Core() {