X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcoresession.cpp;h=518246a9e06c6fcb39d01c07e10beea095f38cac;hp=ea584f9c0b3b12cadce0c39821fdb5579f821ffe;hb=b1b970e71618cb2d2cf372ba55234000c6324d7f;hpb=1e7b6cda464041cac334b03a8b01679b4b9a56d3 diff --git a/src/core/coresession.cpp b/src/core/coresession.cpp index ea584f9c..518246a9 100644 --- a/src/core/coresession.cpp +++ b/src/core/coresession.cpp @@ -718,19 +718,18 @@ void CoreSession::changePassword(PeerPtr peer, const QString &userName, const QS if (uid.isValid() && uid == user()) success = Core::changeUserPassword(uid, newPassword); - emit passwordChanged(peer, success); + signalProxy()->restrictTargetPeers({signalProxy()->sourcePeer()}, [&]{ + emit passwordChanged(nullptr, success); + }); } void CoreSession::kickClient(int peerId) { - qWarning() << "kickClient(" << peerId << ")"; - auto peer = signalProxy()->peerById(peerId); if (peer == nullptr) { qWarning() << "Invalid peer Id: " << peerId; return; } signalProxy()->restrictTargetPeers({peer}, [&]{ - qWarning() << "executing closure"; emit disconnectFromCore(); }); }