From 93f4ab34ef31f776364b5e7c046651585cc65feb Mon Sep 17 00:00:00 2001 From: "Tristan B. Kildaire" Date: Sun, 18 Oct 2020 13:40:53 +0200 Subject: [PATCH] Applied last commit's idea to leave messages --- source/dnetd/dchannel.d | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/dnetd/dchannel.d b/source/dnetd/dchannel.d index a85b3e1..9c472f4 100644 --- a/source/dnetd/dchannel.d +++ b/source/dnetd/dchannel.d @@ -197,7 +197,10 @@ public class DChannel protocolData ~= [0]; /* Set the channel notificaiton type to `member leave` */ - protocolData ~= cast(byte[])left.getUsername(); + + /* LeaveInfo: , */ + string leaveInfo = name~","~left.getUsername(); + protocolData ~= cast(byte[])leaveInfo; /* Write the notification */ member.writeSocket(0, protocolData);