X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Firccap.h;h=0bcb66d253fd64e68d696fa2954b96b50c46769c;hb=d778861aa194578cd90e019b64fe285ea58746c4;hp=29042b1d8ed4983ad2c6d662975397135c3dd047;hpb=be8eb9963bb6c0e6522f818c51f9b6930adc7876;p=quassel.git diff --git a/src/common/irccap.h b/src/common/irccap.h index 29042b1d..0bcb66d2 100644 --- a/src/common/irccap.h +++ b/src/common/irccap.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2019 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 * @@ -48,6 +48,13 @@ namespace IrcCap { */ const uint ACCOUNT_NOTIFY_WHOX_NUM = 369; + /** + * Send account information as a tag with all commands sent by a user. + * + * http://ircv3.net/specs/extensions/account-notify-3.1.html + */ + const QString ACCOUNT_TAG = "account-tag"; + /** * Away change notification. * @@ -79,6 +86,13 @@ namespace IrcCap { */ const QString EXTENDED_JOIN = "extended-join"; + /** + * Additional metadata on a per-message basis + * + * https://ircv3.net/specs/extensions/message-tags + */ + const QString MESSAGE_TAGS = "message-tags"; + /** * Multiple mode prefixes in MODE and WHO replies. * @@ -93,6 +107,13 @@ namespace IrcCap { */ const QString SASL = "sasl"; + /** + * Allows updating realname without reconnecting + * + * https://ircv3.net/specs/extensions/setname + */ + const QString SETNAME = "setname"; + /** * Userhost in names replies. * @@ -100,6 +121,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,13 +162,17 @@ namespace IrcCap { * List of capabilities currently implemented and requested during capability negotiation. */ const QStringList knownCaps = QStringList{ACCOUNT_NOTIFY, + ACCOUNT_TAG, AWAY_NOTIFY, CAP_NOTIFY, CHGHOST, EXTENDED_JOIN, + MESSAGE_TAGS, MULTI_PREFIX, SASL, + SETNAME, 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.