mirror of
https://github.com/deavminet/dnetd
synced 2024-09-21 17:53:39 +02:00
Applied last commit's idea to leave messages
This commit is contained in:
parent
68cd53ea8d
commit
93f4ab34ef
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user