aboutsummaryrefslogtreecommitdiffstats
path: root/src/users.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2020-07-20 07:33:28 +0100
committerGravatar Sadie Powell2020-07-20 07:36:44 +0100
commit90fb7c511fb6fc5c917d6738eca25961a52c8a9f (patch)
treea64bce85570e572cc768a7f7d4abdfa89a526512 /src/users.cpp
parentSplit OnSetEndPoint into two events. (diff)
downloadinspircd++-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.cpp6
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()