X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcommon%2Fpeer.cpp;h=8f132bb29aea123cee5a6470d39215123861d847;hb=a65f42197839da536975b3e2858eedcef420035f;hp=9a9e3f58e148e63fcb0e38f9618ce251d248a0ba;hpb=53861faa5551606eea31588b65ba501b24fb2e1a;p=quassel.git diff --git a/src/common/peer.cpp b/src/common/peer.cpp index 9a9e3f58..8f132bb2 100644 --- a/src/common/peer.cpp +++ b/src/common/peer.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2016 by the Quassel Project * + * Copyright (C) 2005-2019 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -57,12 +57,17 @@ void Peer::setClientVersion(const QString &clientVersion) { _clientVersion = clientVersion; } -Quassel::Features Peer::features() const { +bool Peer::hasFeature(Quassel::Feature feature) const { + return _features.isEnabled(feature); +} + +Quassel::Features Peer::features() const +{ return _features; } void Peer::setFeatures(Quassel::Features features) { - _features = features; + _features = std::move(features); } int Peer::id() const {