core: Implement account-tag
[quassel.git] / src / common / irccap.h
index af7d0ab..0bcb66d 100644 (file)
@@ -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.
      *
@@ -148,10 +162,12 @@ 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,