From b1eb362d8349447b607a9ccb075ba0043bb70947 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 25 Dec 2022 21:49:59 +0000 Subject: Refactor SocketEngine slightly. - Remove pointless shutdown() wrapper. - Remove pointless bounds checking function. - Make Bind and Listen take an EventHandler instead of a fd. - Add nullability attributes to every method. --- src/users.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index 1f3307109..ad12f8619 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -708,7 +708,7 @@ void LocalUser::ChangeRemoteAddress(const irc::sockets::sockaddrs& sa) void LocalUser::Write(const ClientProtocol::SerializedMessage& text) { - if (!SocketEngine::BoundsCheckFd(&eh)) + if (!eh.HasFd()) return; if (ServerInstance->Config->RawLog) -- cgit v1.3.1-10-gc9f91