From ed350c5c711b678aece3132d32f10fe52b05972b Mon Sep 17 00:00:00 2001 From: "Tristan B. Kildaire" Date: Sat, 30 Jan 2021 12:10:48 +0200 Subject: [PATCH] Upgraded to new tristanable --- dub.json | 2 +- dub.selections.json | 2 +- source/dnetd/dlink.d | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/dub.json b/dub.json index 7c66655..908efc3 100644 --- a/dub.json +++ b/dub.json @@ -4,7 +4,7 @@ ], "copyright": "Copyright © 2020, Tristan B. Kildaire", "dependencies": { - "bformat": "~>3.1.0", + "bformat": "3.1.0", "gogga": "0.0.2", "tristanable": "2.2.0" }, diff --git a/dub.selections.json b/dub.selections.json index b71b90e..08028a1 100644 --- a/dub.selections.json +++ b/dub.selections.json @@ -3,6 +3,6 @@ "versions": { "bformat": "3.1.0", "gogga": "0.0.2", - "tristanable": "0.0.33" + "tristanable": "2.2.0" } } diff --git a/source/dnetd/dlink.d b/source/dnetd/dlink.d index 93852c1..79f0084 100644 --- a/source/dnetd/dlink.d +++ b/source/dnetd/dlink.d @@ -136,7 +136,10 @@ public final class DLink : Thread byte[] data; data ~= [1]; - /* TODO: Encode [nameLen, name] */ + /* TODO: Encode [serverNameLen, serverName] */ + string serverName; + data ~= [cast(byte)serverName.length]; + data ~= serverName; /* Encode and send LINK command */ DataMessage message = new DataMessage(0, data);