mirror of
https://github.com/deavminet/dnetd
synced 2024-09-21 09:43:37 +02:00
Refactored
This commit is contained in:
parent
d4384c439e
commit
e07f456848
@ -373,11 +373,14 @@ public class DConnection : Thread
|
|||||||
/* Get the message (offset from null-terminator, hence +1 at the end) */
|
/* Get the message (offset from null-terminator, hence +1 at the end) */
|
||||||
string msg = cast(string)message.data[1+i+1..message.data.length];
|
string msg = cast(string)message.data[1+i+1..message.data.length];
|
||||||
|
|
||||||
|
/* Send status */
|
||||||
|
bool sendStatus;
|
||||||
|
|
||||||
/* If we are sending to a user */
|
/* If we are sending to a user */
|
||||||
if(messageType == cast(byte)0)
|
if(messageType == cast(byte)0)
|
||||||
{
|
{
|
||||||
/* Send the message to the user */
|
/* Send the message to the user */
|
||||||
bool sendStatus = sendUserMessage(destination, msg);
|
sendStatus = sendUserMessage(destination, msg);
|
||||||
reply = [sendStatus];
|
reply = [sendStatus];
|
||||||
}
|
}
|
||||||
/* If we are sending to a channel */
|
/* If we are sending to a channel */
|
||||||
|
Loading…
Reference in New Issue
Block a user