X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Firccap.h;h=bbee7cddcc5d37aa0baa0650f6208c669a3a940b;hp=14c0ed7c9568715507d7dd62ee9d6d1128b595c6;hb=6241df540a42b307e7768333848e219e381e95a5;hpb=fa2e185ecffa83feca93577a2f8348d554e61f96 diff --git a/src/common/irccap.h b/src/common/irccap.h index 14c0ed7c..bbee7cdd 100644 --- a/src/common/irccap.h +++ b/src/common/irccap.h @@ -101,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. */ @@ -112,7 +130,8 @@ namespace IrcCap { 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.