From e07f456848e6dd391814444987b03ce61b439a60 Mon Sep 17 00:00:00 2001 From: "Tristan B. Kildaire" Date: Sun, 27 Sep 2020 19:39:48 +0200 Subject: [PATCH] Refactored --- source/dnetd/dconnection.d | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/dnetd/dconnection.d b/source/dnetd/dconnection.d index 6091103..52e5902 100644 --- a/source/dnetd/dconnection.d +++ b/source/dnetd/dconnection.d @@ -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 */