From ccfa04c4d2d738b13fdf8ba013b317ca3f593e16 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 25 Jul 2023 10:10:02 +0100 Subject: Fix some cases missed in the previous commit. --- src/xline.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/xline.cpp b/src/xline.cpp index effd3edd8..43e7f1479 100644 --- a/src/xline.cpp +++ b/src/xline.cpp @@ -559,7 +559,7 @@ void XLine::DefaultApply(User* u, bool bancache) { "created", Time::ToString(set_time) }, { "duration", Duration::ToString(duration) }, { "expiry", Time::ToString(expiry) }, - { "fulltype", type.length() == 1 ? type + "-lined" : type }, + { "fulltype", type.length() <= 2 ? type + "-lined" : type }, { "reason", reason }, { "remaining", Duration::ToString(ServerInstance->Time() - expiry) }, { "setter", source }, @@ -705,9 +705,8 @@ void ELine::OnAdd() void XLine::DisplayExpiry() { - bool onechar = (type.length() == 1); ServerInstance->SNO.WriteToSnoMask('x', "Removing an expired {}{} on {} (set by {} {} ago): {}", - type, (onechar ? "-line" : ""), Displayable(), source, + type, (type.length() <= 2 ? "-line" : ""), Displayable(), source, Duration::ToString(ServerInstance->Time() - set_time), reason); } -- cgit v1.3.1-10-gc9f91