From 4c3afb5027243a0b591b60cf5c987c666d4f470a Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Sat, 25 Mar 2023 14:24:42 +0200 Subject: [PATCH] ConnInfo - Added documentation for `setDefaults(ref ConnectionInfo)` - Removed assertion and debug print --- source/birchwood/config/conninfo.d | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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