/***************************************************************************
- * Copyright (C) 2005-2016 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 *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#ifndef IRCCAP_H
-#define IRCCAP_H
+#pragma once
#include <QString>
#include <QStringList>
*/
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
*/
namespace Vendor {
+ /**
+ * Twitch.tv membership message support
+ *
+ * User list in a channel can be quite large and often non required for bot users and is then optional.
+ *
+ * From Twitch.tv documentation:
+ * "Adds membership state event data. By default, we do not send this data to clients without this capability."
+ *
+ * https://dev.twitch.tv/docs/v5/guides/irc/#twitch-irc-capability-membership
+ */
+ const QString TWITCH_MEMBERSHIP = "twitch.tv/membership";
+
/**
* Self message support, as recognized by ZNC.
*
/**
* List of capabilities currently implemented and requested during capability negotiation.
*/
- const QStringList knownCaps = QStringList {
- ACCOUNT_NOTIFY,
- AWAY_NOTIFY,
- CAP_NOTIFY,
- CHGHOST,
- EXTENDED_JOIN,
- MULTI_PREFIX,
- SASL,
- USERHOST_IN_NAMES,
- Vendor::ZNC_SELF_MESSAGE
- };
+ const QStringList knownCaps = QStringList{ACCOUNT_NOTIFY,
+ AWAY_NOTIFY,
+ CAP_NOTIFY,
+ CHGHOST,
+ EXTENDED_JOIN,
+ MULTI_PREFIX,
+ SASL,
+ 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.
/**
const QString EXTERNAL = "EXTERNAL";
}
}
-
-#endif // IRCCAP_H