Merge pull request #198 - IRCv3 improvements
[quassel.git] / src / common / irccap.h
index 3398ada..14c0ed7 100644 (file)
@@ -41,6 +41,14 @@ namespace IrcCap {
      */
     const QString ACCOUNT_NOTIFY = "account-notify";
 
+    /**
+     * Magic number for WHOX, used to ignore user-requested WHOX replies from servers
+     *
+     * If a user initiates a WHOX, there's no easy way to tell what fields were requested.  It's
+     * simpler to not attempt to parse data from user-requested WHOX replies.
+     */
+    const uint ACCOUNT_NOTIFY_WHOX_NUM = 369;
+
     /**
      * Away change notification.
      *
@@ -58,6 +66,13 @@ namespace IrcCap {
      */
     const QString CAP_NOTIFY = "cap-notify";
 
+    /**
+     * Hostname/user changed notification.
+     *
+     * http://ircv3.net/specs/extensions/chghost-3.2.html
+     */
+    const QString CHGHOST = "chghost";
+
     /**
      * Extended join information.
      *
@@ -93,6 +108,7 @@ namespace IrcCap {
             ACCOUNT_NOTIFY,
             AWAY_NOTIFY,
             CAP_NOTIFY,
+            CHGHOST,
             EXTENDED_JOIN,
             MULTI_PREFIX,
             SASL,