diff --git a/source/birchwood/config/conninfo.d b/source/birchwood/config/conninfo.d index cd0f50a..4c780c9 100644 --- a/source/birchwood/config/conninfo.d +++ b/source/birchwood/config/conninfo.d @@ -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")); } \ No newline at end of file