mirror of
https://github.com/deavmi/birchwood
synced 2024-09-20 11:43:22 +02:00
ConnInfo
- Added documentation for `setDefaults(ref ConnectionInfo)` - Removed assertion and debug print
This commit is contained in:
parent
357d8ed133
commit
4c3afb5027
@ -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"));
|
||||
}
|
Loading…
Reference in New Issue
Block a user