]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
X-line expiries: use the new DurationString() function.
authorMatt Schatz <genius3000@g3k.solutions>
Sun, 17 Feb 2019 09:20:56 +0000 (02:20 -0700)
committerPeter Powell <petpow@saberuk.com>
Mon, 18 Feb 2019 09:17:38 +0000 (09:17 +0000)
src/modules/m_svshold.cpp
src/xline.cpp

index daffdf7d96aa2b4b981b5e00ef6361324fa39bfb..dbf621932f07560546c1c47376cf8985b7a78760 100644 (file)
@@ -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());
                }
        }
 
index ccdc58dc235cec6021998872fd50aa458916de70..c5b95208736c428562dcd4de88938e0e2011a049 100644 (file)
@@ -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()