summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-08 11:38:31 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-08 11:38:31 +0000
commitc35149012802a28034350aa1187b04af9351c509 (patch)
tree81e7a812ada6e16b60e2fe1d5a6ef680ba2de1e8 /src
parentbc1acff091e610ad7a6c7127b364fe9b6339f51a (diff)
Changed TS check: Abort on +- 5 mins, warn on +- 60 secs!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3547 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_spanningtree.cpp10
-rwxr-xr-xsrc/svn-rev.sh2
2 files changed, 8 insertions, 4 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp
index c40e99b40..f8fc14a26 100644
--- a/src/modules/m_spanningtree.cpp
+++ b/src/modules/m_spanningtree.cpp
@@ -2273,12 +2273,16 @@ class TreeSocket : public InspSocket
{
time_t THEM = atoi(params[0].c_str());
long delta = THEM-time(NULL);
- if ((delta < -600) || (delta > 600))
+ if ((delta < -300) || (delta > 300))
{
- WriteOpers("*** \2ERROR\2: Your clocks are out by %d seconds (this is more than ten minutes). Link aborted, \2PLEASE SYNC YOUR CLOCKS!\2",abs(delta));
- this->WriteLine("ERROR :Your clocks are out by "+ConvToStr(abs(delta))+" seconds (this is more than ten minutes). Link aborted, PLEASE SYNC YOUR CLOCKS!");
+ WriteOpers("*** \2ERROR\2: Your clocks are out by %d seconds (this is more than five minutes). Link aborted, \2PLEASE SYNC YOUR CLOCKS!\2",abs(delta));
+ this->WriteLine("ERROR :Your clocks are out by "+ConvToStr(abs(delta))+" seconds (this is more than five minutes). Link aborted, PLEASE SYNC YOUR CLOCKS!");
return false;
}
+ else if ((delta < -60) || (delta > 60))
+ {
+ WriteOpers("*** \2WARNING\2: Your clocks are out by %d seconds, please consider synching your clocks.",abs(delta));
+ }
this->LinkState = CONNECTED;
Node = new TreeServer(InboundServerName,InboundDescription,TreeRoot,this);
TreeRoot->AddChild(Node);
diff --git a/src/svn-rev.sh b/src/svn-rev.sh
index 44e2d920b..a55b557e7 100755
--- a/src/svn-rev.sh
+++ b/src/svn-rev.sh
@@ -1 +1 @@
-echo 3544
+echo 3546