diff options
author | Peter Powell <petpow@saberuk.com> | 2019-08-01 12:58:22 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2019-08-01 12:58:22 +0100 |
commit | d5ed9d15c1d16d8ea0fd2a9087cf04016ce91345 (patch) | |
tree | 3734e8c6bc1a0b88d593071b765d5d9b5c184237 /src | |
parent | 4e3d655dff6f8a5aed626475fbf19c2a7119c20b (diff) |
Fix a shadowing warning in UserIOHandler::OnError.
Diffstat (limited to 'src')
-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()); } |