diff options
author | Robby <robby@chatbelgie.be> | 2018-10-14 07:23:06 +0200 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2018-10-14 10:25:44 +0100 |
commit | 7498202cd661670ca8c615fe1001cbd30a83e29e (patch) | |
tree | 9b4346d7234df24757496112f96ab1c42fea9e43 /src | |
parent | a0f7d012791d79b67b56b62415f7901d5e48870f (diff) |
Show reasons in xline expiry messages.
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 e74f3324b..2b38653c5 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)", - 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()); } } diff --git a/src/xline.cpp b/src/xline.cpp index d07fe0dc5..e0151b661 100644 --- a/src/xline.cpp +++ b/src/xline.cpp @@ -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() |