diff options
Diffstat (limited to 'src/xline.cpp')
| -rw-r--r-- | src/xline.cpp | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/xline.cpp b/src/xline.cpp index d39a1c97e..e48d1010b 100644 --- a/src/xline.cpp +++ b/src/xline.cpp @@ -556,14 +556,16 @@ 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() <= 2 ? type + "-lined" : type }, - { "reason", reason }, - { "remaining", Duration::ToString(ServerInstance->Time() - expiry) }, - { "setter", source }, - { "type", type }, + { "created", Time::ToString(set_time) }, + { "duration", Duration::ToString(duration) }, + { "duration.long", Duration::ToLongString(duration) }, + { "expiry", Time::ToString(expiry) }, + { "fulltype", type.length() <= 2 ? type + "-lined" : type }, + { "reason", reason }, + { "remaining", Duration::ToString(ServerInstance->Time() - expiry) }, + { "remaining.long", Duration::ToLongString(ServerInstance->Time() - expiry) }, + { "setter", source }, + { "type", type }, }; const std::string banreason = Template::Replace(ServerInstance->Config->XLineQuit, vars); |
