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

Refactored

This commit is contained in:
Tristan B. Kildaire 2020-09-27 19:39:48 +02:00
parent d4384c439e
commit e07f456848

View File

@ -373,11 +373,14 @@ public class DConnection : Thread
/* Get the message (offset from null-terminator, hence +1 at the end) */
string msg = cast(string)message.data[1+i+1..message.data.length];
/* Send status */
bool sendStatus;
/* If we are sending to a user */
if(messageType == cast(byte)0)
{
/* Send the message to the user */
bool sendStatus = sendUserMessage(destination, msg);
sendStatus = sendUserMessage(destination, msg);
reply = [sendStatus];
}
/* If we are sending to a channel */