diff options
| author | 2025-03-10 01:24:02 +0000 | |
|---|---|---|
| committer | 2025-03-10 19:18:24 +0000 | |
| commit | 41124e1ad11db1708d1f5b942cc9fcbe00b1e3c2 (patch) | |
| tree | c80f396f7b4c6a4fe0e9d31e4903694a6ad6c617 /src/inspircd.cpp | |
| parent | Rename the FAKELAG isupport token to SAFERATE. (diff) | |
Improve the clock jumping message slightly.
Diffstat (limited to 'src/inspircd.cpp')
| -rw-r--r-- | src/inspircd.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index c83bda18d..68ed5b6ef 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -129,10 +129,16 @@ namespace time_t timediff = newtime - oldtime; if (timediff > ServerInstance->Config->TimeSkipWarn) - ServerInstance->SNO.WriteToSnoMask('a', "\002Performance warning!\002 Server clock jumped forwards by {}!", Duration::ToHuman(timediff)); + { + ServerInstance->SNO.WriteToSnoMask('a', "\002Performance warning!\002 Server clock jumped forwards by {} (from {} to {})!", + Duration::ToHuman(timediff), Time::ToString(oldtime), Time::ToString(newtime)); + } else if (timediff < -ServerInstance->Config->TimeSkipWarn) - ServerInstance->SNO.WriteToSnoMask('a', "\002Performance warning!\002 Server clock jumped backwards by {}!", Duration::ToHuman(std::abs(timediff))); + { + ServerInstance->SNO.WriteToSnoMask('a', "\002Performance warning!\002 Server clock jumped backwards by {} (from {} to {})!", + Duration::ToHuman(std::abs(timediff)), Time::ToString(oldtime), Time::ToString(newtime)); + } } // Drops to the unprivileged user/group specified in <security:runas{user,group}>. |
