1
0
mirror of https://github.com/deavmi/birchwood synced 2024-09-20 11:22:53 +02:00
- Added documentation for `setDefaults(ref ConnectionInfo)`
- Removed assertion and debug print
This commit is contained in:
Tristan B. Velloza Kildaire 2023-03-25 14:24:42 +02:00
parent 357d8ed133
commit 4c3afb5027

View File

@ -234,11 +234,15 @@ public shared struct ConnectionInfo
}
}
/**
* Sets the default values as per rfc1459 in the
* key-value pair DB
*
* Params:
* connInfo = a reference to the ConnectionInfo struct to update
*/
public void setDefaults(ref ConnectionInfo connInfo)
{
/* Set the `MAXNICKLEN` to a default of 9 */
connInfo.updateDB("MAXNICKLEN", "9");
assert(connInfo.getDB!(ulong)("MAXNICKLEN") == 9);
import std.stdio;
writeln("MAXKAK: ", connInfo.getDB!(ulong)("MAXNICKLEN"));
}