mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 11:09:04 -04:00
Backport autoconnect fix: don't delay autoconnects if a higher value than we already have set comes along, it's unhelpful.
git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@10880 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
ea1161ea43
commit
b9daad9999
@ -542,7 +542,9 @@ void SpanningTreeUtilities::ReadConfiguration(bool rebind)
|
||||
|
||||
}
|
||||
|
||||
L.NextConnectTime = time(NULL) + L.AutoConnect;
|
||||
// Fix: Only trip autoconnects if this wouldn't delay autoconnect..
|
||||
if (L.NextConnectTime > ((time_t)(time() + L.AutoConnect)))
|
||||
L.NextConnectTime = time(NULL) + L.AutoConnect;
|
||||
/* Bugfix by brain, do not allow people to enter bad configurations */
|
||||
if (L.Name != ServerInstance->Config->ServerName)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user