1
0
mirror of https://github.com/deavmi/birchwood synced 2024-09-20 09:23:38 +02:00
- Cleaned up imports
This commit is contained in:
Tristan B. Velloza Kildaire 2023-06-28 23:12:19 +02:00
parent 24f548820a
commit f85fcde112

View File

@ -4,7 +4,7 @@
module birchwood.client.client;
import std.socket : Socket, SocketException, Address, getAddress, SocketType, ProtocolType, SocketOSException;
import std.socket : SocketFlags;
import std.socket : SocketFlags, SocketShutdown;
import std.conv : to;
import std.container.slist : SList;
import core.sync.mutex : Mutex;
@ -14,6 +14,7 @@ import eventy : EventyEvent = Event, Engine, EventType, Signal, EventyException;
import birchwood.config;
import birchwood.client.exceptions : BirchwoodException, ErrorType;
import birchwood.protocol.messages : Message, encodeMessage, decodeMessage, isValidText;
import birchwood.protocol.constants : ReplyType;
import birchwood.client.receiver : ReceiverThread;
import birchwood.client.sender : SenderThread;
@ -165,8 +166,6 @@ public class Client : Thread
/* Default implementation */
logger.log("Response("~to!(string)(commandReply.getReplyType())~", "~commandReply.getFrom()~"): "~commandReply.toString());
import birchwood.protocol.constants : ReplyType;
if(commandReply.getReplyType() == ReplyType.RPL_ISUPPORT)
{
// TODO: Testing code was here
@ -1193,7 +1192,6 @@ public class Client : Thread
}
/* Shut down socket AND close it */
import std.socket : SocketShutdown;
socket.shutdown(SocketShutdown.BOTH);
socket.close();