From 49229547b1f76dd93ab470334d0fa5e02a461348 Mon Sep 17 00:00:00 2001 From: "Tristan B. Kildaire" Date: Sat, 30 Jan 2021 13:00:13 +0200 Subject: [PATCH] Send back [nameLen, name] --- source/dnetd/dconnection.d | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/dnetd/dconnection.d b/source/dnetd/dconnection.d index 09982e4..cfbd0c2 100644 --- a/source/dnetd/dconnection.d +++ b/source/dnetd/dconnection.d @@ -391,6 +391,11 @@ public class DConnection : Thread hasAuthed = true; reply ~= [0]; // Testing for now + + /* Send [nameLen, name] */ + string serverName = server.getGeneralConfig().getName(); + reply ~= [cast(byte)serverName.length]; + reply ~= serverName; } /* If `register` command (requires: unauthed, client) */ else if(command == Command.REGISTER && !hasAuthed && connType == ConnectionType.CLIENT)