mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-12 12:09:03 -04:00
Fix problem with autoconnects: don't reset NextConnectTime to a higher value than it currently is, as that doesn't play very nice with multiple autoconnect values..
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10879 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
1bed8ef4ff
commit
93b0661dda
@ -536,7 +536,9 @@ void SpanningTreeUtilities::ReadConfiguration(bool rebind)
|
||||
|
||||
}
|
||||
|
||||
L.NextConnectTime = ServerInstance->Time() + L.AutoConnect;
|
||||
// Fix: Only trip autoconnects if this wouldn't delay autoconnect..
|
||||
if (L.NextConnectTime > ((time_t)(ServerInstance->Time() + L.AutoConnect)))
|
||||
L.NextConnectTime = ServerInstance->Time() + L.AutoConnect;
|
||||
|
||||
if (L.Name.find('.') == std::string::npos)
|
||||
throw CoreException("The link name '"+assign(L.Name)+"' is invalid and must contain at least one '.' character");
|
||||
|
Loading…
x
Reference in New Issue
Block a user