X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fpeer.cpp;h=1d459b67f34a47edc956c636726dde633f71b76c;hp=9a9e3f58e148e63fcb0e38f9618ce251d248a0ba;hb=900cce213a6ed000b7131a05a0dec7d04b35b023;hpb=53861faa5551606eea31588b65ba501b24fb2e1a diff --git a/src/common/peer.cpp b/src/common/peer.cpp index 9a9e3f58..1d459b67 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-2018 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 {