Prepare for compile-time versions

This commit is contained in:
Les De Ridder 2020-10-14 05:05:46 +02:00
parent a9a0f5564a
commit 9c3f902bfd
1 changed files with 29 additions and 0 deletions

29
source/ircd/versions.d Normal file
View File

@ -0,0 +1,29 @@
module ircd.versions;
/++
Supported versions:
* NotStrict: enabled when any versions are enabled that disable RFC-strictness (i.e. any of the following)
* SupportTLS: compile with TLS support, enabled when NotStrict is on
* BasicFixes: enable basic/sanity RFC fixes
* MaxNickLengthConfigurable: makes max nick length configurable
* Modern: enable all versions
+/
version (SupportTLS) version = NotStrict;
version (BasicFixes) version = NotStrict;
version (MaxNickLengthConfigurable) version = NotStrict;
version (NotStrict)
{
version = SupportTLS;
}
version (Modern)
{
version = NotStrict;
version = SupportTLS;
version = BasicFixes;
version = MaxNickLengthConfigurable;
}