diff options
Diffstat (limited to 'src/users.cpp')
-rw-r--r-- | src/users.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/users.cpp b/src/users.cpp index 12742bbc9..efaffd2dd 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -1354,11 +1354,7 @@ const char* userrec::GetIPString(char* buf) */ void userrec::Write(std::string text) { -#ifdef WINDOWS - if ((this->fd < 0) || (this->m_internalFd > MAX_DESCRIPTORS)) -#else - if ((this->fd < 0) || (this->fd > MAX_DESCRIPTORS)) -#endif + if (ServerInstance->SE->BoundsCheckFd(this)) return; try |