From 29b51086b95c86f812ac35ed7d3333f060ba5a8c Mon Sep 17 00:00:00 2001 From: w00t Date: Fri, 22 Feb 2008 16:40:02 +0000 Subject: Nuke TIMESYNC from orbit \o/ git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8998 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_alltime.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/modules/m_alltime.cpp') diff --git a/src/modules/m_alltime.cpp b/src/modules/m_alltime.cpp index 83dbe53b8..75ed4f355 100644 --- a/src/modules/m_alltime.cpp +++ b/src/modules/m_alltime.cpp @@ -28,16 +28,11 @@ class CommandAlltime : public Command CmdResult Handle(const char* const* parameters, int pcnt, User *user) { char fmtdate[64]; - char fmtdate2[64]; - time_t now = ServerInstance->Time(false); + time_t now = ServerInstance->Time(); strftime(fmtdate, sizeof(fmtdate), "%F %T", gmtime(&now)); - now = ServerInstance->Time(true); - strftime(fmtdate2, sizeof(fmtdate2), "%F %T", gmtime(&now)); - - int delta = ServerInstance->GetTimeDelta(); std::string msg = ":" + std::string(ServerInstance->Config->ServerName) + " NOTICE " + user->nick + " :System time for " + - ServerInstance->Config->ServerName + " is: " + fmtdate + " (delta " + ConvToStr(delta) + " seconds): Time with delta: "+ fmtdate2; + ServerInstance->Config->ServerName + " is: " + fmtdate; if (IS_LOCAL(user)) { -- cgit v1.2.3