]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Increase max time difference to 600 secs
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Mon, 20 Aug 2007 16:41:33 +0000 (16:41 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Mon, 20 Aug 2007 16:41:33 +0000 (16:41 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7769 e03df62e-2008-0410-955e-edbf42e46eb7

src/modules/m_spanningtree/treesocket2.cpp

index 88c7666bff7319b88095e0ea5dd93a7d41e83093..db459e60c7e6b83a862562cb343e97cbefdfc0af 100644 (file)
@@ -1022,7 +1022,7 @@ bool TreeSocket::ProcessLine(std::string &line)
                                        bool we_have_delta = (Instance->Time(false) != Instance->Time(true));
                                        time_t them = atoi(params[0].c_str());
                                        time_t delta = them - Instance->Time(false);
-                                       if ((delta < -300) || (delta > 300))
+                                       if ((delta < -600) || (delta > 600))
                                        {
                                                Instance->SNO->WriteToSnoMask('l',"\2ERROR\2: Your clocks are out by %d seconds (this is more than five minutes). Link aborted, \2PLEASE SYNC YOUR CLOCKS!\2",abs(delta));
                                                SendError("Your clocks are out by "+ConvToStr(abs(delta))+" seconds (this is more than five minutes). Link aborted, PLEASE SYNC YOUR CLOCKS!");