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/usermanager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/usermanager.cpp') diff --git a/src/usermanager.cpp b/src/usermanager.cpp index 5dead741c..e60bd23c0 100644 --- a/src/usermanager.cpp +++ b/src/usermanager.cpp @@ -173,9 +173,9 @@ void UserManager::AddUser(int socket, ListenSocket* via, irc::sockets::sockaddrs // IOHook could have encountered a fatal error, e.g. if the TLS ClientHello // was already in the queue and there was no common TLS version. - if (!eh->getError().empty()) + if (!eh->GetError().empty()) { - QuitUser(New, eh->getError()); + QuitUser(New, eh->GetError()); return; } } @@ -392,7 +392,7 @@ void UserManager::DoBackgroundUserStuff() LocalUser* curr = *i; ++i; - if (curr->CommandFloodPenalty || curr->eh.getSendQSize()) + if (curr->CommandFloodPenalty || curr->eh.GetSendQSize()) { unsigned int rate = curr->MyClass->GetCommandRate(); if (curr->CommandFloodPenalty > rate) -- cgit v1.3.1-10-gc9f91