diff options
| author | 2020-07-20 07:33:28 +0100 | |
|---|---|---|
| committer | 2020-07-20 07:36:44 +0100 | |
| commit | 90fb7c511fb6fc5c917d6738eca25961a52c8a9f (patch) | |
| tree | a64bce85570e572cc768a7f7d4abdfa89a526512 /src/users.cpp | |
| parent | Split OnSetEndPoint into two events. (diff) | |
| download | inspircd++-90fb7c511fb6fc5c917d6738eca25961a52c8a9f.tar.gz inspircd++-90fb7c511fb6fc5c917d6738eca25961a52c8a9f.tar.bz2 inspircd++-90fb7c511fb6fc5c917d6738eca25961a52c8a9f.zip | |
Fix the case of getError/getSendQSize and rewrite the doc comments.
Diffstat (limited to 'src/users.cpp')
| -rw-r--r-- | src/users.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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() |
