summaryrefslogtreecommitdiff
path: root/src/userprocess.cpp
diff options
context:
space:
mode:
authorRobin Burchell <robin+git@viroteck.net>2014-10-05 01:51:47 +0200
committerRobin Burchell <robin+git@viroteck.net>2014-10-05 01:51:47 +0200
commitd4d907fcb3a98a7d17093c1488666eea6bfd9848 (patch)
tree41bb227f9a6964a4db7137aaf0da2878fd9ff03a /src/userprocess.cpp
parent3db020ca0ba7d5dc797c07885b1d9f80def2b00d (diff)
Revert "Fix an off-by-one on registration timeout handling."
This seemingly breaks (occasionally timing users out a second early), possibly due to rounding issues on time (User::age and Time() both return int, but a whole second is comprised of many ms). The root cause needs investigation, but we cannot leave a potentially breaking bug in the tree. This reverts commit 4414d644a163f3906f90b35186e07ce0383161f4.
Diffstat (limited to 'src/userprocess.cpp')
-rw-r--r--src/userprocess.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/userprocess.cpp b/src/userprocess.cpp
index fe90e2381..9cc2e7df7 100644
--- a/src/userprocess.cpp
+++ b/src/userprocess.cpp
@@ -107,7 +107,7 @@ void InspIRCd::DoBackgroundUserStuff()
break;
}
- if (curr->registered != REG_ALL && (Time() >= (curr->age + curr->MyClass->GetRegTimeout())))
+ if (curr->registered != REG_ALL && (Time() > (curr->age + curr->MyClass->GetRegTimeout())))
{
/*
* registration timeout -- didnt send USER/NICK/HOST