From 1fbd75d645e2b4243ebec65bb8952069b24253b9 Mon Sep 17 00:00:00 2001 From: special Date: Sun, 5 Nov 2006 00:47:08 +0000 Subject: Added time syncing! This is fairly simple - servers exchange timestamps and use the lowest - but should get rid of the annoying bounces for those of us who can't depend on ntpd. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5649 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/users.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index a79f0a61d..0b0e5f58b 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -293,6 +293,7 @@ userrec::userrec(InspIRCd* Instance) : ServerInstance(Instance) *password = *nick = *ident = *host = *dhost = *fullname = *awaymsg = *oper = 0; server = (char*)Instance->FindServerNamePtr(Instance->Config->ServerName); reset_due = ServerInstance->Time(); + age = ServerInstance->Time(true); lines_in = lastping = signon = idle_lastmsg = nping = registered = 0; ChannelCount = timeout = flood = bytes_in = bytes_out = cmds_in = cmds_out = 0; haspassed = dns_done = false; -- cgit v1.3.1-10-gc9f91