From af3a36512a1f50e35a0feb960f9fcb7e7418b0f5 Mon Sep 17 00:00:00 2001 From: "Tristan B. Kildaire" Date: Mon, 5 Oct 2020 19:38:01 +0200 Subject: [PATCH] Removed uneeded cast --- source/dnetd/dconnection.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/dnetd/dconnection.d b/source/dnetd/dconnection.d index 4646067..f60d778 100644 --- a/source/dnetd/dconnection.d +++ b/source/dnetd/dconnection.d @@ -430,13 +430,13 @@ public class DConnection : Thread bool sendStatus; /* If we are sending to a user */ - if(cast(uint)messageType == 0) + if(messageType == 0) { /* Send the message to the user */ sendStatus = sendUserMessage(destination, msg); } /* If we are sending to a channel */ - else if(cast(int)messageType == 1) + else if(messageType == 1) { /* The channel wanting to send to */ DChannel channel = server.getChannelByName(destination);