diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_svshold.cpp | 4 | ||||
-rw-r--r-- | src/xline.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_svshold.cpp b/src/modules/m_svshold.cpp index daffdf7d9..dbf621932 100644 --- a/src/modules/m_svshold.cpp +++ b/src/modules/m_svshold.cpp @@ -58,8 +58,8 @@ public: { if (!silent) { - ServerInstance->SNO->WriteToSnoMask('x', "Removing expired SVSHOLD %s (set by %s %ld seconds ago): %s", - nickname.c_str(), source.c_str(), (long)(ServerInstance->Time() - set_time), reason.c_str()); + ServerInstance->SNO->WriteToSnoMask('x', "Removing expired SVSHOLD %s (set by %s %s ago): %s", + nickname.c_str(), source.c_str(), InspIRCd::DurationString(ServerInstance->Time() - set_time).c_str(), reason.c_str()); } } diff --git a/src/xline.cpp b/src/xline.cpp index ccdc58dc2..c5b952087 100644 --- a/src/xline.cpp +++ b/src/xline.cpp @@ -682,8 +682,8 @@ void ELine::OnAdd() void XLine::DisplayExpiry() { bool onechar = (type.length() == 1); - ServerInstance->SNO->WriteToSnoMask('x', "Removing expired %s%s %s (set by %s %ld seconds ago): %s", - type.c_str(), (onechar ? "-line" : ""), Displayable().c_str(), source.c_str(), (long)(ServerInstance->Time() - set_time), reason.c_str()); + ServerInstance->SNO->WriteToSnoMask('x', "Removing expired %s%s %s (set by %s %s ago): %s", + type.c_str(), (onechar ? "-line" : ""), Displayable().c_str(), source.c_str(), InspIRCd::DurationString(ServerInstance->Time() - set_time).c_str(), reason.c_str()); } const std::string& ELine::Displayable() |