salty-ircd/source/ircd/versions.d

38 lines
876 B
D
Raw Normal View History

2020-10-14 05:05:46 +02:00
module ircd.versions;
/++
Supported versions:
* SupportTLS: compile with TLS support
2020-10-14 05:05:46 +02:00
* BasicFixes: enable basic/sanity RFC fixes
* MaxNickLengthConfigurable: makes max nick length configurable
* Modern: enable all versions
(* NotStrict: enabled when any versions are enabled that disable RFC-strictness, i.e. any of the above)
2020-10-14 05:05:46 +02:00
+/
2020-10-14 05:59:33 +02:00
//TODO: Implement 'SupportTLS'
//TODO: Implement 'MaxNickLengthConfigurable'
version (Modern)
{
version = SupportTLS;
version = BasicFixes;
version = MaxNickLengthConfigurable;
}
2020-10-14 05:05:46 +02:00
version (SupportTLS) version = NotStrict;
version (BasicFixes) version = NotStrict;
version (MaxNickLengthConfigurable) version = NotStrict;
version (NotStrict)
{
2020-10-16 01:48:18 +02:00
version (SupportTLS)
{
}
else
{
static assert(false, "TLS support must be enabled if any non-strict versions are enabled.");
}
2020-10-14 05:05:46 +02:00
}