From 0edd0d92e656c5467ff34ea0ea9c837ceb16d0bf Mon Sep 17 00:00:00 2001 From: Shane Synan Date: Thu, 26 May 2016 23:57:54 -0400 Subject: [PATCH] Add CapNegotiation Feature flag, fix CMakeLists Add CapNegotiation Feature flag to Quassel's CoreFeatures list. Technically, this isn't needed - newer clients can connect to older cores just fine. However, it may be useful to know if the core supports cap negotiation or account-tracking in the future, and there's no way to retroactively add this flag once 0.13 is released. Remove an unneccessary semicolon at the end of Q_DECLARE_FLAGS. Add quassel.h to CMakeLists.txt, so automoc includes it and it shows up in Qt Creator. --- src/common/CMakeLists.txt | 1 + src/common/quassel.h | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index b2aa2008..66416c37 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -44,6 +44,7 @@ set(SOURCES # needed for automoc coreinfo.h irccap.h + protocol.h ) if (USE_QT5) diff --git a/src/common/quassel.h b/src/common/quassel.h index ba883b0b..09a5d847 100644 --- a/src/common/quassel.h +++ b/src/common/quassel.h @@ -71,10 +71,11 @@ public: SaslExternal = 0x0004, HideInactiveNetworks = 0x0008, PasswordChange = 0x0010, + CapNegotiation = 0x0020, /// IRCv3 capability negotiation, account tracking - NumFeatures = 0x0010 + NumFeatures = 0x0020 }; - Q_DECLARE_FLAGS(Features, Feature); + Q_DECLARE_FLAGS(Features, Feature) //! The features the current version of Quassel supports (\sa Feature) /** \return An ORed list of all enum values in Feature -- 2.20.1