X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Firccap.h;h=bbee7cddcc5d37aa0baa0650f6208c669a3a940b;hb=622ae84876eaab27ab232ee72e97e090b0aa57c0;hp=3398adab295825a68e5daede53701ed644a82f25;hpb=dccbef488a2299cf08146cdfc11933a8fe28a387;p=quassel.git diff --git a/src/common/irccap.h b/src/common/irccap.h index 3398adab..bbee7cdd 100644 --- a/src/common/irccap.h +++ b/src/common/irccap.h @@ -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. * @@ -86,6 +101,24 @@ namespace IrcCap { */ const QString USERHOST_IN_NAMES = "userhost-in-names"; + /** + * Vendor-specific capabilities + */ + namespace Vendor { + + /** + * Self message support, as recognized by ZNC. + * + * Some servers (e.g. Bitlbee) assume self-message support; ZNC requires a capability + * instead. As self-message is already implemented, there's little reason to not do this. + * + * More information in the IRCv3 commit that removed the 'self-message' capability. + * + * https://github.com/ircv3/ircv3-specifications/commit/1bfba47843c2526707c902034b3395af934713c8 + */ + const QString ZNC_SELF_MESSAGE = "znc.in/self-message"; + } + /** * List of capabilities currently implemented and requested during capability negotiation. */ @@ -93,10 +126,12 @@ namespace IrcCap { ACCOUNT_NOTIFY, AWAY_NOTIFY, CAP_NOTIFY, + CHGHOST, EXTENDED_JOIN, MULTI_PREFIX, SASL, - USERHOST_IN_NAMES + USERHOST_IN_NAMES, + Vendor::ZNC_SELF_MESSAGE }; // NOTE: If you modify the knownCaps list, update the constants above as needed.