aboutsummaryrefslogtreecommitdiff
path: root/src/usermanager.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-04-18 19:29:34 +0100
committerGravatar Sadie Powell2021-04-19 00:14:53 +0100
commite701bd030584ab7435e0c1baa188bed34db5df29 (patch)
tree221b3d4fec4250429041a3509d3500309111d454 /src/usermanager.cpp
parentMigrate collections from insert to emplace. (diff)
Rip out the OnConnectionFail event.
This never really worked correctly and will now be replaced with something better.
Diffstat (limited to 'src/usermanager.cpp')
-rw-r--r--src/usermanager.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/usermanager.cpp b/src/usermanager.cpp
index 4f82c0f00..20ca10d0e 100644
--- a/src/usermanager.cpp
+++ b/src/usermanager.cpp
@@ -65,16 +65,6 @@ namespace
// This user didn't answer the last ping, remove them.
if (!user->lastping)
{
- ModResult res;
- FIRST_MOD_RESULT(OnConnectionFail, res, (user, I_ERR_TIMEOUT));
- if (res == MOD_RES_ALLOW)
- {
- // A module is preventing this user from being timed out.
- user->lastping = 1;
- user->nextping = ServerInstance->Time() + user->GetClass()->GetPingTime();
- return;
- }
-
time_t secs = ServerInstance->Time() - (user->nextping - user->GetClass()->GetPingTime());
const std::string message = "Ping timeout: " + ConvToStr(secs) + (secs != 1 ? " seconds" : " second");
ServerInstance->Users.QuitUser(user, message);