summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Burchell <robin+git@viroteck.net>2014-10-04 15:30:56 +0200
committerRobin Burchell <robin+git@viroteck.net>2014-10-04 16:25:00 +0200
commit4414d644a163f3906f90b35186e07ce0383161f4 (patch)
tree72f3f8895c668ebf23e612cdea3d7068adea6d34
parentaf5e651cc73d0a0d599c03bc95955f8f9c314680 (diff)
Fix an off-by-one on registration timeout handling.
The use of > instead of >= here added a second onto the configured timeout. We won't be breaking any existing configuration, because users.h explicitly increases the limit if it's 0.
-rw-r--r--src/userprocess.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/userprocess.cpp b/src/userprocess.cpp
index 9cc2e7df7..fe90e2381 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