diff --git a/source/dnetd/dconnection.d b/source/dnetd/dconnection.d index 50ce486..0ef681c 100644 --- a/source/dnetd/dconnection.d +++ b/source/dnetd/dconnection.d @@ -923,12 +923,18 @@ public class DConnection : Thread /* Set to user message (direct message, sub-sub-type) */ protocolData ~= [1]; - /* Encode the sender's length */ + /* Encode the recipients's length */ protocolData ~= [cast(byte)username.length]; /* Encode the username */ protocolData ~= cast(byte[])username; + /* Encode the sender's's length */ + protocolData ~= [cast(byte)this.username.length]; + + /* Encode the sender */ + protocolData ~= cast(byte[])this.username; + /* Encode the message */ protocolData ~= cast(byte[])message;