1
0
mirror of https://github.com/deavminet/dnetd synced 2024-09-21 17:53:39 +02:00

Type corrected

This commit is contained in:
Tristan B. Kildaire 2021-01-30 13:44:15 +02:00
parent 51b2dc4876
commit df0a9ec0e7
2 changed files with 4 additions and 1 deletions

View File

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

View File

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