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

Applied last commit's idea to leave messages

This commit is contained in:
Tristan B. Kildaire 2020-10-18 13:40:53 +02:00
parent 68cd53ea8d
commit 93f4ab34ef

View File

@ -197,7 +197,10 @@ public class DChannel
protocolData ~= [0];
/* Set the channel notificaiton type to `member leave` */
protocolData ~= cast(byte[])left.getUsername();
/* LeaveInfo: <channel>,<username> */
string leaveInfo = name~","~left.getUsername();
protocolData ~= cast(byte[])leaveInfo;
/* Write the notification */
member.writeSocket(0, protocolData);