summaryrefslogtreecommitdiff
path: root/src/modules/m_alltime.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_alltime.cpp')
-rw-r--r--src/modules/m_alltime.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/m_alltime.cpp b/src/modules/m_alltime.cpp
index 0ce517886..d207d457e 100644
--- a/src/modules/m_alltime.cpp
+++ b/src/modules/m_alltime.cpp
@@ -24,8 +24,7 @@ class cmd_alltime : public command_t
time_t now = ServerInstance->Time();
strftime(fmtdate, sizeof(fmtdate), "%F %T", gmtime(&now));
- // I'm too lazy to add a function to fetch the delta, so lets just cheat..
- int delta = time(NULL) - now;
+ int delta = ServerInstance->GetTimeDelta();
string msg = ":" + string(ServerInstance->Config->ServerName) + " NOTICE " + user->nick + " :Time for " +
ServerInstance->Config->ServerName + " is: " + fmtdate + " (delta " + ConvToStr(delta) + " seconds)";