add oidentd cli options to quasselcore
[quassel.git] / src / core / core.cpp
index 3b1a9e5..2b4b6a3 100644 (file)
@@ -202,7 +202,8 @@ void Core::init() {
   connect(&_v6server, SIGNAL(newConnection()), this, SLOT(incomingConnection()));
   if(!startListening()) exit(1); // TODO make this less brutal
 
   connect(&_v6server, SIGNAL(newConnection()), this, SLOT(incomingConnection()));
   if(!startListening()) exit(1); // TODO make this less brutal
 
-  _oidentdConfigGenerator = new OidentdConfigGenerator(this);
+  if(Quassel::isOptionSet("oidentd"))
+    _oidentdConfigGenerator = new OidentdConfigGenerator(this);
 }
 
 Core::~Core() {
 }
 
 Core::~Core() {