X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Firccap.h;h=e1615f7385453ad982a62aff0b7c49c6a104176c;hp=b1c9c5a068c0ba269b42313b8b447e6afbd80049;hb=a95ad2de573027f9bee36db972bcae4195168d0c;hpb=68878dc8366f2f4a0afe132847aad9a51a80cdbf diff --git a/src/common/irccap.h b/src/common/irccap.h index b1c9c5a0..e1615f73 100644 --- a/src/common/irccap.h +++ b/src/common/irccap.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2018 by the Quassel Project * + * Copyright (C) 2005-2020 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -18,8 +18,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#ifndef IRCCAP_H -#define IRCCAP_H +#pragma once #include #include @@ -101,6 +100,13 @@ namespace IrcCap { */ const QString USERHOST_IN_NAMES = "userhost-in-names"; + /** + * Server time for messages. + * + * https://ircv3.net/specs/extensions/server-time-3.2.html + */ + const QString SERVER_TIME = "server-time"; + /** * Vendor-specific capabilities */ @@ -134,18 +140,17 @@ namespace IrcCap { /** * List of capabilities currently implemented and requested during capability negotiation. */ - const QStringList knownCaps = QStringList { - ACCOUNT_NOTIFY, - AWAY_NOTIFY, - CAP_NOTIFY, - CHGHOST, - EXTENDED_JOIN, - MULTI_PREFIX, - SASL, - USERHOST_IN_NAMES, - Vendor::TWITCH_MEMBERSHIP, - Vendor::ZNC_SELF_MESSAGE - }; + const QStringList knownCaps = QStringList{ACCOUNT_NOTIFY, + AWAY_NOTIFY, + CAP_NOTIFY, + CHGHOST, + EXTENDED_JOIN, + MULTI_PREFIX, + SASL, + USERHOST_IN_NAMES, + SERVER_TIME, + Vendor::TWITCH_MEMBERSHIP, + Vendor::ZNC_SELF_MESSAGE}; // NOTE: If you modify the knownCaps list, update the constants above as needed. /** @@ -165,5 +170,3 @@ namespace IrcCap { const QString EXTERNAL = "EXTERNAL"; } } - -#endif // IRCCAP_H