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