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);