X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fsessionthread.cpp;h=7b8bc105655bb9978345c8c22564dbbe816d51bf;hp=1439bfceca382f979897bfdf96972e296fdf7837;hb=c27d5bfbe80bfeb583a25404f4ccee4b70b010e0;hpb=8379f6f725cf8ed2fdad1a19bd10743436c2d086 diff --git a/src/core/sessionthread.cpp b/src/core/sessionthread.cpp index 1439bfce..7b8bc105 100644 --- a/src/core/sessionthread.cpp +++ b/src/core/sessionthread.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2015 by the Quassel Project * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -25,12 +25,13 @@ #include "sessionthread.h" #include "signalproxy.h" -SessionThread::SessionThread(UserId uid, bool restoreState, QObject *parent) +SessionThread::SessionThread(UserId uid, bool restoreState, bool strictIdentEnabled, QObject *parent) : QThread(parent), _session(0), _user(uid), _sessionInitialized(false), - _restoreState(restoreState) + _restoreState(restoreState), + _strictIdentEnabled(strictIdentEnabled) { connect(this, SIGNAL(initialized()), this, SLOT(setSessionInitialized())); } @@ -120,8 +121,7 @@ void SessionThread::addInternalClientToSession(InternalPeer *internalPeer) void SessionThread::run() { - _session = new CoreSession(user(), _restoreState); - connect(_session, SIGNAL(passwordChangeRequested(UserId, QString)), SIGNAL(passwordChangeRequested(UserId, QString))); + _session = new CoreSession(user(), _restoreState, _strictIdentEnabled); connect(this, SIGNAL(addRemoteClient(RemotePeer*)), _session, SLOT(addClient(RemotePeer*))); connect(this, SIGNAL(addInternalClient(InternalPeer*)), _session, SLOT(addClient(InternalPeer*))); connect(_session, SIGNAL(sessionState(Protocol::SessionState)), Core::instance(), SIGNAL(sessionState(Protocol::SessionState)));