]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix a shadowing warning in UserIOHandler::OnError.
authorPeter Powell <petpow@saberuk.com>
Thu, 1 Aug 2019 11:58:22 +0000 (12:58 +0100)
committerPeter Powell <petpow@saberuk.com>
Thu, 1 Aug 2019 11:58:22 +0000 (12:58 +0100)
src/users.cpp

index cfdd1f0b5c397c0ede7bedd88e421936b6e71868..b8a2d31a83750669f7ea9f3ff006b42029d9103b 100644 (file)
@@ -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());
 }