diff options
| author | 2022-12-25 21:49:59 +0000 | |
|---|---|---|
| committer | 2022-12-25 22:41:28 +0000 | |
| commit | b1eb362d8349447b607a9ccb075ba0043bb70947 (patch) | |
| tree | 6e482446faf550b309e45104424866140bac087b /src/users.cpp | |
| parent | Refactor ListenSocket::OnEventHandlerRead slightly. (diff) | |
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.
Diffstat (limited to 'src/users.cpp')
| -rw-r--r-- | src/users.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
