ChannelJoin notification now returns :<channel>,<username>" instead of just "<username>"

This commit is contained in:
Tristan B. Kildaire 2020-10-18 13:29:18 +02:00
parent e265e09223
commit 68cd53ea8d
1 changed files with 4 additions and 1 deletions

View File

@ -238,7 +238,10 @@ public class DChannel
protocolData ~= [1];
/* Set the channel notificaiton type to `member join` */
protocolData ~= cast(byte[])joined.getUsername();
/* JoinInfo: <channel>,<username> */
string joinInfo = name~","~joined.getUsername();
protocolData ~= cast(byte[])joinInfo;
/* Write the notification */
member.writeSocket(0, protocolData);