From df0a9ec0e70a7b165b8b979a78acb50baf7fac5a Mon Sep 17 00:00:00 2001 From: "Tristan B. Kildaire" Date: Sat, 30 Jan 2021 13:44:15 +0200 Subject: [PATCH] Type corrected --- source/dnetd/dconnection.d | 3 +++ source/dnetd/dlink.d | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/source/dnetd/dconnection.d b/source/dnetd/dconnection.d index cfbd0c2..d6d26ce 100644 --- a/source/dnetd/dconnection.d +++ b/source/dnetd/dconnection.d @@ -385,6 +385,9 @@ public class DConnection : Thread //server.getMeyer().get gprintln("OurMeyer: "~to!(string)(server.getMeyer())); + + gprintln() + /* Set the type of this connection to `server` */ connType = ConnectionType.SERVER; diff --git a/source/dnetd/dlink.d b/source/dnetd/dlink.d index 594f283..a2c50ff 100644 --- a/source/dnetd/dlink.d +++ b/source/dnetd/dlink.d @@ -179,7 +179,7 @@ public final class DLink : Thread if(dataReply[0] == 0) { /* TODO: Get server name, makes sure it matches on in config file */ - byte nameLen = dataReply[1]; + ubyte nameLen = dataReply[1]; string name = cast(string)dataReply[2..2+nameLen]; gprintln("Server said his name is '"~name~"'", DebugType.WARNING);