diff options
Diffstat (limited to 'src/users.cpp')
| -rw-r--r-- | src/users.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/users.cpp b/src/users.cpp index e70832f80..4d63dc86e 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -707,14 +707,11 @@ void LocalUser::ChangeConnectClass(const std::shared_ptr<ConnectClass>& klass, b void LocalUser::Write(const ClientProtocol::SerializedMessage& text) { - if (!eh.HasFd()) + if (!eh.HasFd() || text.empty()) return; if (ServerInstance->Config->RawLog) { - if (text.empty()) - return; - std::string::size_type nlpos = text.find_first_of("\r\n", 0, 2); if (nlpos == std::string::npos) nlpos = text.length(); |
