diff options
| author | 2019-08-01 12:58:22 +0100 | |
|---|---|---|
| committer | 2019-08-01 12:58:22 +0100 | |
| commit | d5ed9d15c1d16d8ea0fd2a9087cf04016ce91345 (patch) | |
| tree | 3734e8c6bc1a0b88d593071b765d5d9b5c184237 /src/users.cpp | |
| parent | Only send ACCOUNT and CHGHOST to clients that have sent NICK/USER. (diff) | |
Fix a shadowing warning in UserIOHandler::OnError.
Diffstat (limited to 'src/users.cpp')
| -rw-r--r-- | src/users.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/users.cpp b/src/users.cpp index cfdd1f0b5..b8a2d31a8 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -314,10 +314,10 @@ bool UserIOHandler::OnSetEndPoint(const irc::sockets::sockaddrs& server, const i return !user->quitting; } -void UserIOHandler::OnError(BufferedSocketError error) +void UserIOHandler::OnError(BufferedSocketError sockerr) { ModResult res; - FIRST_MOD_RESULT(OnConnectionFail, res, (user, error)); + FIRST_MOD_RESULT(OnConnectionFail, res, (user, sockerr)); if (res != MOD_RES_ALLOW) ServerInstance->Users->QuitUser(user, getError()); } |
