identd: Remove unneeded strict attribute
authorManuel Nickschas <sputnick@quassel-irc.org>
Mon, 18 Jun 2018 18:19:26 +0000 (20:19 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Mon, 18 Jun 2018 19:25:50 +0000 (21:25 +0200)
Strictness is now handled in CoreSession, so the attribute is no
longer used.

src/core/core.cpp
src/core/identserver.cpp
src/core/identserver.h

index e3c7931..d596344 100644 (file)
@@ -224,7 +224,7 @@ bool Core::init()
 
 
         if (Quassel::isOptionSet("ident-daemon")) {
 
 
         if (Quassel::isOptionSet("ident-daemon")) {
-            _identServer = new IdentServer(_strictIdentEnabled, this);
+            _identServer = new IdentServer(this);
         }
 
         Quassel::registerReloadHandler([]() {
         }
 
         Quassel::registerReloadHandler([]() {
index c68d119..c3be8f5 100644 (file)
@@ -24,9 +24,8 @@
 #include "identserver.h"
 #include "logger.h"
 
 #include "identserver.h"
 #include "logger.h"
 
-IdentServer::IdentServer(bool strict, QObject *parent)
+IdentServer::IdentServer(QObject *parent)
     : QObject(parent)
     : QObject(parent)
-    , _strict(strict)
 {
     connect(&_server, SIGNAL(newConnection()), this, SLOT(incomingConnection()));
     connect(&_v6server, SIGNAL(newConnection()), this, SLOT(incomingConnection()));
 {
     connect(&_server, SIGNAL(newConnection()), this, SLOT(incomingConnection()));
     connect(&_v6server, SIGNAL(newConnection()), this, SLOT(incomingConnection()));
index fac112c..3723c25 100644 (file)
@@ -51,7 +51,7 @@ class IdentServer : public QObject
     Q_OBJECT
 
 public:
     Q_OBJECT
 
 public:
-    IdentServer(bool strict, QObject *parent = nullptr);
+    IdentServer(QObject *parent = nullptr);
 
     bool startListening();
     void stopListening(const QString &msg);
 
     bool startListening();
     void stopListening(const QString &msg);
@@ -76,8 +76,6 @@ private:
 
     QTcpServer _server, _v6server;
 
 
     QTcpServer _server, _v6server;
 
-    bool _strict;
-
     QHash<uint16_t, QString> _connections;
     std::list<Request> _requestQueue;
     std::list<qint64> _waiting;
     QHash<uint16_t, QString> _connections;
     std::list<Request> _requestQueue;
     std::list<qint64> _waiting;