diff options
| author | 2019-02-17 02:23:32 -0700 | |
|---|---|---|
| committer | 2019-02-18 09:17:38 +0000 | |
| commit | 755a32c75101c4df0e5699db558785fc0dbc1973 (patch) | |
| tree | a5e789f122881bf1ed7dc124da779600bb3fe13c /src/modules/m_timedbans.cpp | |
| parent | X-line expiries: use the new DurationString() function. (diff) | |
| download | inspircd++-755a32c75101c4df0e5699db558785fc0dbc1973.tar.gz inspircd++-755a32c75101c4df0e5699db558785fc0dbc1973.tar.bz2 inspircd++-755a32c75101c4df0e5699db558785fc0dbc1973.zip | |
Start using DurationString() in X-line additions and
a few other modules where it fits better than just showing seconds.
Diffstat (limited to 'src/modules/m_timedbans.cpp')
| -rw-r--r-- | src/modules/m_timedbans.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_timedbans.cpp b/src/modules/m_timedbans.cpp index 32b376c79..83488a954 100644 --- a/src/modules/m_timedbans.cpp +++ b/src/modules/m_timedbans.cpp @@ -118,7 +118,7 @@ class CommandTban : public Command T.chan = channel; TimedBanList.push_back(T); - const std::string addban = user->nick + " added a timed ban on " + mask + " lasting for " + ConvToStr(duration) + " seconds."; + const std::string addban = user->nick + " added a timed ban on " + mask + " lasting for " + InspIRCd::DurationString(duration) + "."; // If halfop is loaded, send notice to halfops and above, otherwise send to ops and above PrefixMode* mh = ServerInstance->Modes->FindPrefixMode('h'); char pfxchar = (mh && mh->name == "halfop") ? mh->GetPrefix() : '@'; |
