diff options
| author | 2022-12-20 18:48:03 +0000 | |
|---|---|---|
| committer | 2022-12-20 18:48:03 +0000 | |
| commit | 957cb76eba142a6cd51630a834bfe536c628ee2f (patch) | |
| tree | 0d644482e3afe82d01d807828aa693bc2e4d0ea6 /src/modules/m_spanningtree/treesocket2.cpp | |
| parent | Fix a Doxygen documentation typo. (diff) | |
Lower the threshold for server clock offsets to 15s/5s.
Diffstat (limited to 'src/modules/m_spanningtree/treesocket2.cpp')
| -rw-r--r-- | src/modules/m_spanningtree/treesocket2.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_spanningtree/treesocket2.cpp b/src/modules/m_spanningtree/treesocket2.cpp index 4258695ef..b7ef466a1 100644 --- a/src/modules/m_spanningtree/treesocket2.cpp +++ b/src/modules/m_spanningtree/treesocket2.cpp @@ -162,13 +162,13 @@ void TreeSocket::ProcessLine(std::string& line) { time_t them = ServerCommand::ExtractTS(params[0]); time_t delta = them - ServerInstance->Time(); - if ((delta < -60) || (delta > 60)) + if ((delta < -15) || (delta > 15)) { - ServerInstance->SNO.WriteGlobalSno('l', "\002ERROR\002: Your clocks are off by %ld seconds (this is more than one minute). Link aborted, \002PLEASE SYNC YOUR CLOCKS!\002", labs((long)delta)); - SendError("Your clocks are out by "+ConvToStr(labs((long)delta))+" seconds (this is more than one minute). Link aborted, PLEASE SYNC YOUR CLOCKS!"); + ServerInstance->SNO.WriteGlobalSno('l', "\002ERROR\002: Your clocks are off by %ld seconds (this is more than fifteen seconds). Link aborted, \002PLEASE SYNC YOUR CLOCKS!\002", labs((long)delta)); + SendError("Your clocks are out by "+ConvToStr(labs((long)delta))+" seconds (this is more than fifteen seconds). Link aborted, PLEASE SYNC YOUR CLOCKS!"); return; } - else if ((delta < -15) || (delta > 15)) + else if ((delta < -5) || (delta > 5)) { ServerInstance->SNO.WriteGlobalSno('l', "\002WARNING\002: Your clocks are off by %ld seconds. Please consider syncing your clocks.", labs((long)delta)); } |
