Removed uneeded cast

This commit is contained in:
Tristan B. Kildaire 2020-10-05 19:38:01 +02:00
parent 53bbf8710c
commit af3a36512a
1 changed files with 2 additions and 2 deletions

View File

@ -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);