]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Show reasons in xline expiry messages.
authorRobby <robby@chatbelgie.be>
Sun, 14 Oct 2018 05:23:06 +0000 (07:23 +0200)
committerPeter Powell <petpow@saberuk.com>
Sun, 14 Oct 2018 09:25:44 +0000 (10:25 +0100)
src/modules/m_svshold.cpp
src/xline.cpp

index e74f3324ba936ff324326d4f94b86fbd273e5df8..2b38653c58007015227980450ce83041cc362adb 100644 (file)
@@ -58,8 +58,8 @@ public:
        {
                if (!silent)
                {
-                       ServerInstance->SNO->WriteToSnoMask('x', "Removing expired SVSHOLD %s (set by %s %ld seconds ago)",
-                               nickname.c_str(), source.c_str(), (long)(ServerInstance->Time() - set_time));
+                       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());
                }
        }
 
index d07fe0dc5b61a52c4ccd169bcb51417bc710e7dc..e0151b661ee3e4dabe620a092006b83045a39400 100644 (file)
@@ -680,8 +680,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)",
-               type.c_str(), (onechar ? "-Line" : ""), Displayable().c_str(), source.c_str(), (long)(ServerInstance->Time() - set_time));
+       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());
 }
 
 const std::string& ELine::Displayable()