aboutsummaryrefslogtreecommitdiff
path: root/src/xline.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-07-25 08:58:08 +0100
committerGravatar Sadie Powell2023-07-25 08:58:08 +0100
commit2ee3fb86dd7ff083b4073de9f95229ce8c400fe3 (patch)
treebc2214630579b1db2d52c20a36619688ce31ac0d /src/xline.cpp
parentMerge branch 'insp3' into master. (diff)
Add the %created% and %fulltype% variables for the X-line reason.
Diffstat (limited to 'src/xline.cpp')
-rw-r--r--src/xline.cpp2
1 files changed, 2 insertions, 0 deletions
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 },