From 90fb7c511fb6fc5c917d6738eca25961a52c8a9f Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 20 Jul 2020 07:33:28 +0100 Subject: Fix the case of getError/getSendQSize and rewrite the doc comments. --- src/users.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index 04c13ed84..e04fefdde 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -260,7 +260,7 @@ void UserIOHandler::OnDataReady() // The position within the recvq of the current character. std::string::size_type qpos; - while (user->CommandFloodPenalty < penaltymax && getSendQSize() < sendqmax) + while (user->CommandFloodPenalty < penaltymax && GetSendQSize() < sendqmax) { // Check the newly received data for an EOL. eolpos = recvq.find('\n', checked_until); @@ -312,7 +312,7 @@ void UserIOHandler::AddWriteBuf(const std::string &data) { if (user->quitting_sendq) return; - if (!user->quitting && getSendQSize() + data.length() > user->MyClass->GetSendqHardMax() && + if (!user->quitting && GetSendQSize() + data.length() > user->MyClass->GetSendqHardMax() && !user->HasPrivPermission("users/flood/increased-buffers")) { user->quitting_sendq = true; @@ -349,7 +349,7 @@ void UserIOHandler::OnError(BufferedSocketError sockerr) ModResult res; FIRST_MOD_RESULT(OnConnectionFail, res, (user, sockerr)); if (res != MOD_RES_ALLOW) - ServerInstance->Users.QuitUser(user, getError()); + ServerInstance->Users.QuitUser(user, GetError()); } CullResult User::cull() -- cgit v1.3.1-10-gc9f91