mirror of
https://github.com/deavminet/dnetd
synced 2024-09-21 01:33:24 +02:00
Removed uneeded cast
This commit is contained in:
parent
53bbf8710c
commit
af3a36512a
@ -430,13 +430,13 @@ public class DConnection : Thread
|
|||||||
bool sendStatus;
|
bool sendStatus;
|
||||||
|
|
||||||
/* If we are sending to a user */
|
/* If we are sending to a user */
|
||||||
if(cast(uint)messageType == 0)
|
if(messageType == 0)
|
||||||
{
|
{
|
||||||
/* Send the message to the user */
|
/* Send the message to the user */
|
||||||
sendStatus = sendUserMessage(destination, msg);
|
sendStatus = sendUserMessage(destination, msg);
|
||||||
}
|
}
|
||||||
/* If we are sending to a channel */
|
/* If we are sending to a channel */
|
||||||
else if(cast(int)messageType == 1)
|
else if(messageType == 1)
|
||||||
{
|
{
|
||||||
/* The channel wanting to send to */
|
/* The channel wanting to send to */
|
||||||
DChannel channel = server.getChannelByName(destination);
|
DChannel channel = server.getChannelByName(destination);
|
||||||
|
Loading…
Reference in New Issue
Block a user