salty-ircd/source/ircd/versions.d

36 lines
867 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)
{
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
}