From 84155a3670e4699d42693a806030c7cd76da1e71 Mon Sep 17 00:00:00 2001 From: HF Date: Sat, 25 Jun 2022 15:40:22 +0200 Subject: [PATCH] correct moderation log messages pt3 --- src/core/adminfunctions.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/adminfunctions.js b/src/core/adminfunctions.js index 3354a35..05a0603 100644 --- a/src/core/adminfunctions.js +++ b/src/core/adminfunctions.js @@ -269,18 +269,18 @@ export async function executeProtAction( logger( (protect) // eslint-disable-next-line max-len - ? `protected ${width}x${height} area at #${canvasid},${x},${y} with ${pxlCount}pxls (${ulcoor} - ${brcoor})` + ? `protected ${width}x${height} area at #${canvas.ident},${x},${y} with ${pxlCount}pxls (${ulcoor} - ${brcoor})` // eslint-disable-next-line max-len - : `unprotect ${width}x${height} area at #${canvasid},${x},${y} with ${pxlCount}pxls (${ulcoor} - ${brcoor})`, + : `unprotect ${width}x${height} area at #${canvas.ident},${x},${y} with ${pxlCount}pxls (${ulcoor} - ${brcoor})`, ); } return [ 200, (protect) // eslint-disable-next-line max-len - ? `Successfully protected ${width}x${height} area at #${canvasid},${x},${y} with ${pxlCount}pxls (${ulcoor} - ${brcoor})` + ? `Successfully protected ${width}x${height} area at #${canvas.ident},${x},${y} with ${pxlCount}pxls (${ulcoor} - ${brcoor})` // eslint-disable-next-line max-len - : `Successfully unprotected ${width}x${height} area at #${canvasid},${x},${y} with ${pxlCount}pxls (${ulcoor} - ${brcoor})`, + : `Successfully unprotected ${width}x${height} area at #${canvas.ident},${x},${y} with ${pxlCount}pxls (${ulcoor} - ${brcoor})`, ]; }