diff options
| author | 2019-02-17 02:20:56 -0700 | |
|---|---|---|
| committer | 2019-02-18 09:17:38 +0000 | |
| commit | ff7bebe90c6b348b0df28864e4954d04bd17256b (patch) | |
| tree | 5c7f07c40ee38c0aa88688e97ba3e74023bad700 /src/xline.cpp | |
| parent | Add a function for displaying human-readable durations. (diff) | |
| download | inspircd++-ff7bebe90c6b348b0df28864e4954d04bd17256b.tar.gz inspircd++-ff7bebe90c6b348b0df28864e4954d04bd17256b.tar.bz2 inspircd++-ff7bebe90c6b348b0df28864e4954d04bd17256b.zip | |
X-line expiries: use the new DurationString() function.
Diffstat (limited to 'src/xline.cpp')
| -rw-r--r-- | src/xline.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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() |
