From 2ee3fb86dd7ff083b4073de9f95229ce8c400fe3 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 25 Jul 2023 08:58:08 +0100 Subject: Add the %created% and %fulltype% variables for the X-line reason. --- src/xline.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/xline.cpp') diff --git a/src/xline.cpp b/src/xline.cpp index 4c1a4e765..effd3edd8 100644 --- a/src/xline.cpp +++ b/src/xline.cpp @@ -556,8 +556,10 @@ void XLine::DefaultApply(User* u, bool bancache) u->WriteNumeric(ERR_YOUREBANNEDCREEP, ServerInstance->Config->XLineMessage); Template::VariableMap vars = { + { "created", Time::ToString(set_time) }, { "duration", Duration::ToString(duration) }, { "expiry", Time::ToString(expiry) }, + { "fulltype", type.length() == 1 ? type + "-lined" : type }, { "reason", reason }, { "remaining", Duration::ToString(ServerInstance->Time() - expiry) }, { "setter", source }, -- cgit v1.3.1-10-gc9f91