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:
w00t 2008-12-12 21:13:48 +00:00
parent ea1161ea43
commit b9daad9999

View File

@ -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)
{