Encode server name

This commit is contained in:
Tristan B. Kildaire 2021-01-30 12:25:40 +02:00
parent c06be5ae2b
commit 9f0d66b7bc
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ public final class DLink : Thread
data ~= [1];
/* TODO: Encode [serverNameLen, serverName] */
string serverName;
string serverName = server.getGeneralConfig().getName();
data ~= [cast(byte)serverName.length];
data ~= serverName;